DrumAt5280
Technical User
I am confused how I can write a query to return the best sales day in terms of the amount and the date.
Table: sales
date field: dateStamp
price: price
My attempt did not work:
Table: sales
date field: dateStamp
price: price
My attempt did not work:
Code:
SELECT count(*) as totalSales, dateStamp
FROM sales
GROUP BY dateStamp
ORDER BY price desc Limit 1