Can anyone post a SQL query for Calculating Total No. of Orders per Day?
Here are the Columns along with their data in my Database.
order_id
SELECT date(order_placed_date) , COUNT(id) AS num_orders , SUM(order_total) AS daily_total FROM orders GROUP BY 1
Just copied Peter's answer but altered it so it will work. Plus shortcuted the group by.