diff --git a/1484-group-sold-products-by-the-date/1484-group-sold-products-by-the-date.sql b/1484-group-sold-products-by-the-date/1484-group-sold-products-by-the-date.sql new file mode 100644 index 0000000..83f6ef0 --- /dev/null +++ b/1484-group-sold-products-by-the-date/1484-group-sold-products-by-the-date.sql @@ -0,0 +1,3 @@ +# Write your MySQL query statement below + +SELECT sell_date, COUNT(DISTINCT product) as num_sold, GROUP_CONCAT(DISTINCT product ORDER BY product SEPARATOR ',' ) AS products FROM Activities GROUP BY sell_date ORDER BY sell_date \ No newline at end of file