8000 Update # 1327. List the Products Ordered in a Period.sql · dana3601/Leetcode-Problems@0c303a8 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0c303a8

Browse files
committed
Update # 1327. List the Products Ordered in a Period.sql
1 parent 5214243 commit 0c303a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Order and Deliver/# 1327. List the Products Ordered in a Period.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
SELECT product_name, SUM(unit) AS unit
66
FROM Orders
77
JOIN Products USING(product_id)
8-
WHERE LEFT(order_date, 7) = "2020-02"
8+
WHERE order_date between 4341 "2020-02-01" AND "2020-02-29"
99
GROUP BY 1
1010
HAVING SUM(unit) >= 100;
1111

0 commit comments

Comments
 (0)
0