diff --git a/1327-list-the-products-ordered-in-a-period/1327-list-the-products-ordered-in-a-period.sql b/1327-list-the-products-ordered-in-a-period/1327-list-the-products-ordered-in-a-period.sql new file mode 100644 index 0000000..3bc9516 --- /dev/null +++ b/1327-list-the-products-ordered-in-a-period/1327-list-the-products-ordered-in-a-period.sql @@ -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; \ No newline at end of file