Create a query that aggregates sales data by region and month.
Use the sales table. Include only rows with non-null region and sale_date; null amount values should not prevent valid rows from contributing to totals.
region, month, and total_salesmonth as YYYY-MMregion ascending, then month ascending| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sale |
| region | VARCHAR(50) | Sales region |
| sale_date | DATE | Date on which the sale occurred |
| amount | DECIMAL(10,2) | Sales amount |