
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
아래 처럼 inner join 하려고 하는데 두번째 쿼리의 이름을 B로 붙여준 걸 인식을 못하는 것 같아요
이유가 무엇일까요 ㅠㅠ?

작성한 코드 및 에러 메세지
select * from
(SELECT course_id , count(distinct user_id) from checkins c
group by course_id ) a
inner join (select count(o.user_id ) from orders o
group by o.course_id)b on a.course_id= b.course_id
SQL Error [1054] [42S22]: Unknown column 'b.course_id' in 'on clause'
