Return
day: the sales dateregion: the region namerevenue: total revenue for that region and dayperformance_label: a label of 'High', 'Medium', or 'Low' based on revenue thresholdsday ascending, then region ascending.Expected output
| day | region | revenue | performance_label |
|---|---|---|---|
| 2023-01-01 | EU | 410 | Low |
| 2023-01-01 | US | 490 | Low |
| 2023-01-02 | EU | 758 | Low |
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.