Return
day: the date of activityregion: the sales regionsignup_count: number of signups on that day (from signups table)orders: number of orders in that region on that daysignup_per_order: the ratio of signups to orders (as a decimal)
Only include rows where orders is at least 10. Order the results by day ascending, then region ascending.Expected output
| day | region | signup_count | orders | signup_per_order |
|---|---|---|---|---|
| 2023-01-01 | GB | 33 | 10 | 3.3 |
| 2023-01-01 | US | 33 | 11 | 3 |
| 2023-01-02 | DE | 61 | 17 | 3.588235294117647 |
First 3 of 186 rows your query should return. Your column aliases don't need to match.