
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
[반걸음 더 문제]에서 course_title 을 불러와야하는데 이미 inner join에 사용되고 있는 orders 테이블에도 course_title이 존재하기 때문에 courses 테이블을 추가로 inner join 하지 않고 orders 테이블에서 select 하는 항목에 course_title을 추가해도 되지 않나요?

select title, c.course_id, c.cnt_checkins, o.cnt_total, c.cnt_checkins/o.cnt_total as ratio from
(
select course_id, count(distinct(user_id)) as cnt_checkins from checkins
group by course_id
) c
inner join
(
select course_title as title, course_id, count(*) as cnt_total from orders
group by course_id
) o
on c.course_id = o.course_id
