
연습 4번 join 에서 시작. 8월 1일 이후에 구매한 고객들만 발라내어 보세요!
select c1.title, c2.week, count(*) as cnt from courses c1
inner join checkins c2 on c1.course_id = c2.course_id
inner join orders o on c2.user_id = o.user_id
where o.created_at > '2020-07-31'
group by c1.title, c2.week
order by c1.title, c2.week
질문
> '2020-07-31' 이렇게 입력할 경우 정답과 다르게 나오는 이유는 무엇인가요?
조심해야 하는 부분이 있는걸까요?
