Paid Events Across Cities
Paid Events Across Cities
L. is preparing a city-level summary to see where payments were recorded most often. For each city, count the rows in events where is_paid is true, using a counter that operates on a Boolean condition.
Expected output sample
This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables. Your answer must use the same column names as this sample — alias them with AS if needed.
| city | paid |
|---|---|
| Khvostov | 1 |
| Kotovsk | 0 |
| Miausino | 1 |
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inFocus radio
Paused · SomaFM · Fluid