Return
day: the date of the sales dataregion: the region nameregional_revenue_change_pct: percent change in revenue for that region compared to its previous daynational_revenue_change_pct: percent change in total company revenue compared to the previous dayday and then region. If there is no prior day to compare for a region or for the national total, display NULL for the change percentage.Expected output
| day | region | regional_revenue_change_pct | national_revenue_change_pct |
|---|---|---|---|
| 2023-01-01 | DE | NULL | NULL |
| 2023-01-01 | GB | NULL | NULL |
| 2023-01-01 | IN | NULL | NULL |
First 3 of 208 rows your query should return. Your column aliases don't need to match.