Skip to content

Commit 76d63c8

Browse files
authored
Create Group Sold Product By The Date.sql
1 parent 5c39ad9 commit 76d63c8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--1484 Group Sold Product By The Date--
2+
SELECT
3+
4+
sell_date,
5+
6+
COUNT(DISTINCT product) AS num_sold,
7+
8+
GROUP_CONCAT(DISTINCT product ORDER BY product) AS products
9+
10+
FROM Activities
11+
12+
GROUP BY sell_date;

0 commit comments

Comments
 (0)