SELECT SUM(sales) AS Monthly_Sales
FROM Sales
WHERE salesdate BETWEEN Start_Date AND END_Date;
You can replace the start and end date with start and end date of the period for which you want to calculate the sum.
If you have a requirement to dynamically get sum of sales by month then we will have to modify this query.
Try this
You can replace the start and end date with start and end date of the period for which you want to calculate the sum.
If you have a requirement to dynamically get sum of sales by month then we will have to modify this query.