Skip to content

Commit

Permalink
Time: 633 ms (73.77%), Space: 0B (100.00%) - LeetHub
Browse files Browse the repository at this point in the history
  • Loading branch information
joseantoniochacon committed Oct 1, 2024
1 parent 4454e9d commit 4eb7bd0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Write your MySQL query statement below

SELECT Products.product_name, SUM(unit) AS unit FROM Orders JOIN Products ON Orders.product_id = Products.product_id WHERE MONTH(order_date) = 2 AND YEAR(order_date) = 2020 GROUP BY Products.product_name HAVING unit >= 100;

0 comments on commit 4eb7bd0

Please sign in to comment.