
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
with table1 as(SELECT c.course_id ,COUNT(DISTINCT(c.user_id))as cnt_chk
from checkins c
group by c.course_id),table2 as(SELECT o.course_title ,o.course_id,COUNT(o.user_id)
FROM orders o
group by o.course_title)
SELECT
b.course_title,
a.cnt_chk,
b.cnt_tot,
a.cnt_chk/b.cnt_tot as ratio
FROM table1 a inner join table2 b on a.course_id=b.course_id
SQL Error [1146] [42S02]: Table 'sparta.table1' doesn't exist
다음과 같은 오류가 발생하는 이유를 알고 싶습니다.
