
연습4번에서, 8월 1일 이후에 구매한 고객들만 발라내어 보세요!
SELECT c.title, c2.week, count(*) as cnt from courses c
inner join checkins c2 on c.course_id = c2.course_id
inner join orders o on c2.user_id = o.user_id
where o.created_at >= '2020-08-01'
group by c.title, c2.week
order by c.title, c2.week
이 코드에서
inner join orders o on c2.user_id = o.user_id
두번째 inner join 할때 course_id로 묶으면 왜 안될까요?
