
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
3주차 숙제 질문입니다.
group by 후에 where 로 찾으면 오류가 나는데, 순서에도 상관이 있는건가요..?
그룹으로 묶은 다음에 where 하면 안되나요..?


작성한 코드 및 에러 메세지
select *from enrolleds e
inner join enrolleds_detail ed on e.enrolled_id =ed.enrolled_id
group by e.enrolled_id
where ed.done = 1
SQL Error [1064] [42000]: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where ed.done = 1' at line 4
Error position: line: 3
