[문제]
[MySQL]
SELECT p.product_name
, SUM(o.unit) AS unit
FROM Products AS p
LEFT JOIN Orders AS o ON p.product_id = o.product_id
WHERE o.order_date >= '2020-02-01'
AND o.order_date < '2020-03-01'
GROUP BY p.product_id
HAVING SUM(o.unit) >= 100
'SQL > LeetCode' 카테고리의 다른 글
| [LeetCode] 1378. Replace Employee ID With The Unique Identifier (0) | 2025.02.20 |
|---|---|
| [LeetCode] 1341. Movie Rating (0) | 2025.02.20 |
| [LeetCode] 1321. Restaurant Growth (0) | 2025.02.20 |
| [LeetCode] 1280. Students and Examinations (0) | 2025.02.20 |
| [LeetCode] 1251. Average Selling Price (0) | 2025.02.20 |
