I would like to calculate total order amount in the previous month.
I got the query for getting the data for the present month from the current date.
Simplest solution:
SELECT SUM(goods_total) AS Total_Amount FROM orders WHERE YEAR(order_placed_date) = YEAR(CURDATE() - INTERVAL 1 MONTH) AND MONTH(order_placed_date) = MONTH(CURDATE() - INTERVAL 1 MONTH)