https://school.programmers.co.kr/learn/courses/30/lessons/131532

 

프로그래머스

SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프

programmers.co.kr

 

select year(sales_date) as year, month(sales_date) as month, gender, count(distinct(user_id)) as users
from user_info natural join online_sale
where gender is not null
group by year, month, gender
order by year, month, gender

 

+ Recent posts