select name, count(*) from users group by name
select name, count(*) from users where email like '%naver.com' group by name
select week, count(*) from checkins group by week
select week, min(likes) from checkins group by week
select week, max(likes) from checkins group by week
select week, round(avg(likes),2) from checkins group by week
select week, sum(likes) from checkins group by week
select name, count(*) from users group by name order by count(*) desc
select * from checkins order by likes descselect payment_method, count(*) from orders where course_title = '웹개발 종합반' group by payment_method order by count(*) desc
select * from orders group by payment_method
select * from users order by email descselect * from users order by created_at descselect payment_method, count(*) from orders where course_title = '앱개발 종합반' group by payment_method
select name, count(*) from users where email like '%gmail.com' group by name
select course_id, round(avg(likes),2) from checkins group by course_id
select * from orders o where o.course_title = '앱개발 종합반'select payment_method, count(*) as cnt from orders o where o.course_title = '앱개발 종합반' group by payment_method