
-초급 퀴즈 정답-
select pu.point_user_id,
pu.point,
case when pu.point > (select avg(pu2.point) from point_users pu2) then '잘 하고 있어요!' else '열심히 합시다!' end as msg
from point_users pu
-질문사항-
case when pu.point > (select avg(pu2.point) from point_users pu2) then '잘 하고 있어요!' else '열심히 합시다!' end as msg
여기서
(select avg(pu2.point) from point_users pu2)
대신
avg(pount) 라고만 쓰면 안되나요?? → 저렇게 쓰면 답은 다르네요..
