The query below gives me top 3 services for 6th June 2021.
SELECT products_name AS product,
COUNT(products_name) AS NumberOfBookings
FROM bookings
WHERE date = "06-06-2021"
GROUP BY products_name,
ORDER BY NumberOfBookings DESC
LIMIT 3;
I want to repeat this for each day of June.
How do I do that? I was thinking of iterating over a date range but that is not working. Is there a way to do it with some nested queries or group by?