Skip to content

Commit 75e6d34

Browse files
add 1484
1 parent f67e08e commit 75e6d34

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ _If you like this project, please leave me a star._ ★
992992
|-----|----------------|---------------|---------------|---------------|-------------
993993
|1517|[Find Users With Valid E-Mails](https://leetcode.com/problems/find-users-with-valid-e-mails/)|[Solution](../master/database/_1517.sql) || Easy |
994994
|1495|[Friendly Movies Streamed Last Month](https://leetcode.com/problems/friendly-movies-streamed-last-month/)|[Solution](../master/database/_1495.sql) || Easy |
995+
|1484|[Group Sold Products By The Date](https://leetcode.com/problems/group-sold-products-by-the-date/)|[Solution](../master/database/_1484.sql) || Easy |
995996
|1407|[Top Travellers](https://leetcode.com/problems/top-travellers/)|[Solution](../master/database/_1407.sql) || Easy |
996997
|1384|[Total Sales Amount by Year](https://leetcode.com/problems/total-sales-amount-by-year/)|[Solution](../master/database/_1384.sql) || Hard |
997998
|1378|[Replace Employee ID With The Unique Identifier](https://leetcode.com/problems/replace-employee-id-with-the-unique-identifier/)|[Solution](../master/database/_1378.sql) || Easy |

database/_1484.sql

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
--# Write your MySQL query statement below
2+
select sell_date,
3+
count(distinct(product)) as num_sold,
4+
group_concat(distinct product order by product asc separator ',') as products
5+
from Activities
6+
group by sell_date
7+
order by sell_date asc;

0 commit comments

Comments
 (0)