월
-
프로그래머스 - 년, 월, 성별 별 상품 구매 회원 수 구하기SQL 문제 2024. 1. 5. 15:10
년, 월, 성별 별 상품 구매 회원 수 구하기 USER_INFO 테이블과 ONLINE_SALE 테이블에서 년, 월, 성별 별로 상품을 구매한 회원수를 집계하는 SQL문을 작성해주세요. 결과는 년, 월, 성별을 기준으로 오름차순 정렬해주세요. 이때, 성별 정보가 없는 경우 결과에서 제외해주세요. -- 년, 월, 성별 별로 상품을 구매한 회원수를 집계하는 SQL문을 작성해주세요. -- 결과는 년, 월, 성별을 기준으로 오름차순 정렬해주세요. 이때, 성별 정보가 없는 경우 결과에서 제외해주세요. with sales_info as( SELECT year(sale.sales_date) as Year_date, month(sale.sales_date) as Month_date, info.gender as Gende..