Closed ji-0630 closed 1 year ago
SELECT year(SALES_DATE) as "YEAR", month(SALES_DATE) as "MONTH", gender, count(distinct u.USER_ID) as "USERS"
from USER_INFO u join ONLINE_SALE o
on u.USER_ID = o.USER_ID
where gender is not null
group by year(SALES_DATE), month(SALES_DATE), gender
order by year(SALES_DATE), month(SALES_DATE), gender
문제 설명