
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
select count(u.user_id) as tot_user_ctn,
count(pu.point_user_id) as pnt_user_ctn,
round(count(pnt_user_ctn)/count(tot_user_ctn),2) as ratio from users u
left join point_users pu
on u.user_id = pu.user_id
where u.created_at between '2020-07-10' and '2020-07-20'
작성한 코드 및 에러 메세지
SQL Error [1054] [42S22]: Unknown column 'pnt_user_ctn' in 'field list'

