I'm currently trying to get all orders of the past 30 days and return the total and how many orders there were. If a day has no orders I still want a row in my result (obviously with count and total == 0).
Is there a way to do this?
There are a lot of questions asking this without the requirement of always getting 30 rows. However, I can't comment on them because my reputation is too low.
For example: selecting all orders for last 30 days, and counting how many per day