Return
day: the date of the recordregion: the sales regionrevenue: the revenue for that region and daycumulative_region_revenue: the total revenue for the region from the start through that daycumulative_signups: the total number of signups from the start through that day (all regions)region and day.Expected output
| day | region | revenue | cumulative_region_revenue | cumulative_signups |
|---|---|---|---|---|
| 2023-01-01 | EU | 410 | 410 | 25 |
| 2023-01-02 | EU | 758 | 1168 | 117 |
| 2023-01-03 | EU | 806 | 1974 | 141 |
First 3 of 82 rows your query should return. Your column aliases don't need to match.
daily_sales
| day | region | revenue | orders |
|---|---|---|---|
| 2023-01-01 | US | 490 | 10 |
| 2023-01-02 | US | 1028 | 21 |
| 2023-01-03 | US | 966 | 19 |
| 2023-01-04 | US | 1014 | 20 |
| 2023-01-05 | US | 1062 | 21 |
signups
| day | signup_count |
|---|---|
| 2023-01-01 | 25 |
| 2023-01-02 | 92 |
| 2023-01-03 | 24 |
| 2023-01-04 | 66 |
| 2023-01-05 | 108 |
0 of 4 hints revealed
Submit an attempt first.