Write a SQL query to calculate the month-over-month growth rate of digital sales for the McDonald's mobile app.
Use completed orders placed through the mobile app. Sales are calculated from order item totals. Exclude cancelled orders and orders from other or unknown channels.
month, digital_sales, previous_month_sales, and growth_rate.NULL growth rate. Order chronologically by month.| Column | Type | Description |
|---|---|---|
| order_idPK | INT | Unique order identifier |
| order_date | DATE | Date the order was placed |
| channel | VARCHAR(30) | Ordering channel, such as mobile_app or web |
| status | VARCHAR(20) | Order lifecycle status |
| Column | Type | Description |
|---|---|---|
| item_idPK | INT | Unique order item identifier |
| order_id | INT | Order associated with the item |
| item_total | NUMERIC(10,2) | Revenue attributed to the item |