Hello
I would like to calculate my total order amount in the previous week.
I got the query for getting the data for the last 7 days from the current date.
SELECT SUM(goods_total) AS Total_Amount FROM orders
WHERE order_placed_date >= date_sub(current_date, INTERVAL 7 day);
Now how can I get Previous week data only, excluding this week.
For e.g. This week I made $15,000 and last week i made $14,000.
I get the $15,000 by running the above query.
But i dont know how to calculate previous week.