Skip to content

Commit f55e51d

Browse files
ing-eokingbugs-bot
authored andcommitted
🐜 Study: λ…„, μ›”, 성별 별 μƒν’ˆ ꡬ맀 νšŒμ› 수 κ΅¬ν•˜κΈ° (#53)
1 parent 93e8373 commit f55e51d

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
SELECT
2+
YEAR(os.sales_date) AS YEAR,
3+
MONTH(os.sales_date) AS MONTH,
4+
GENDER,
5+
COUNT(DISTINCT os.USER_ID) AS USERS
6+
FROM
7+
ONLINE_SALE os
8+
LEFT JOIN
9+
USER_INFO ui ON os.USER_ID = ui.USER_ID
10+
WHERE
11+
GENDER IS NOT NULL
12+
GROUP BY
13+
YEAR, MONTH, GENDER
14+
ORDER BY
15+
YEAR, MONTH, GENDER;

0 commit comments

Comments
Β (0)