
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
아래 코드가 문제 없어보이는데 계속 오류가 나서 문의드립니다 ㅠㅠ 무엇이 문제일까요?

SELECT pu.point_user_id ,`point` ,
case when pu.`point` >avg(select avg(pu2.point) from point_users pu2) then '잘하고 있어요'else '열심히 합시다' end as lv
from point_users pu
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 'select avg(pu2.point) from point_users pu2) then '잘하고 있어요'else '열�' at line 2
