
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
안녕하세요
[퀴즈] Join 연습 2에서 group by 문법을 order by보다 먼저 써야하는 이유가 있을까요?
(order by를 먼저 쓰면 에러가 납니다)
전체 화면 캡쳐


작성한 코드 및 에러 메세지
<에러코드>
select * from enrolleds e
inner join users u on e.user_id = u.user_id
where e.is_registered = 0
order by count(*) DESC
group by u.name
<에러메시지>
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 'group by u.name' at line 5
Error position: line: 4
