SELECT YEAR(sale_date) AS Year, QUARTER(sale_date) AS Quarter, SUM(amount) AS Total_Sales FROM sales GROUP BY Year, Quarter;