Skip to content

Commit 84e00e2

Browse files
add 1543
1 parent 194b3d5 commit 84e00e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1002,6 +1002,7 @@ _If you like this project, please leave me a star._ ★
10021002

10031003
| # | Title | Solutions | Video | Difficulty | Tag
10041004
|-----|----------------|---------------|---------------|---------------|-------------
1005+
|1543|[Fix Product Name Format](https://leetcode.com/problems/fix-product-name-format/)|[Solution](../master/database/_1543.sql) || Easy |
10051006
|1517|[Find Users With Valid E-Mails](https://leetcode.com/problems/find-users-with-valid-e-mails/)|[Solution](../master/database/_1517.sql) || Easy |
10061007
|1495|[Friendly Movies Streamed Last Month](https://leetcode.com/problems/friendly-movies-streamed-last-month/)|[Solution](../master/database/_1495.sql) || Easy |
10071008
|1484|[Group Sold Products By The Date](https://leetcode.com/problems/group-sold-products-by-the-date/)|[Solution](../master/database/_1484.sql) || Easy |

database/_1543.sql

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--# Write your MySQL query statement below
2+
select lower(trim(product_name)) product_name, date_format(sale_date, "%Y-%m") sale_date, count(sale_id) total
3+
from sales
4+
group by 1, 2
5+
order by 1, 2

0 commit comments

Comments
 (0)