
1.강의에서 where절을 where user_id = c.user_id 요렇게 알려주셨는데 where c.user_id = user_id 요렇게 써도 같은 결과가 나오더라구요
= 같다라는 의미니깐 순서는 상관이 없나요?
select c.checkin_id,
c.user_id,
c.likes,
(select avg(likes) from checkins
where user_id = c.user_id
) as avg_likes
from checkins c
select c.checkin_id,
c.user_id,
c.likes,
(select avg(likes) from checkins
where c.user_id = user_id
) as avg_likes
from checkins c
