Write a query to calculate month-over-month growth in sales.
Use completed sales with non-null amounts. Return only months that have a preceding month in the data, and return NULL growth when the preceding month's sales are zero.
month, current_sales, previous_sales, and growth_pct.| Column | Type | Description |
|---|---|---|
| sale_idPK | INT | Unique identifier for the sale |
| sale_date | DATE | Date on which the sale occurred |
| sale_amount | NUMERIC(12,2) | Sale amount in the reporting currency |
| status | VARCHAR(20) | Sales lifecycle status |