SQL simple Query
\n# Code\n\nwith ProductCounts as (\n  SELECT\n    sell_date,\n    COUNT(DISTINCT product) AS num_sold,\n    GROUP_CONCAT(DISTINCT product ORDER BY product) AS 
\n# Code\n```\nwith ProductCounts as (\n  SELECT\n    sell_date,\n    COUNT(DISTINCT product) AS num_sold,\n    GROUP_CONCAT(DISTINCT product ORDER BY product) AS products\n  FROM Activities\n  GROUP BY sell_date\n)\nSELECT sell_date, num_sold, products\nFROM ProductCounts \nORDER BY sell_date;\n```
['MySQL']