Table Activities:
+-------------+---------+ | Column Name | Type | +-------------+---------+ | sell_date | date | | product | varchar | +-------------+---------+
There is no primary key for this table, it may contain duplicates.
Each row of this table contains the product name and the date it was sold in a market.
Write an SQL query to find for each date the number of different products sold and their names.
The sold products names for each date should be sorted lexicographically.
Return the result table ordered by sell_date.
# Write your MySQL query statement below select a.sell_date, count(distinct a.product) as num_sold, group_concat( distinct a.product order by a.product separator ',' ) as products from Activities a group by a.sell_date order by a.sell_date