Spotify
Foundations Track · Easy · 15 min
Sponsor Payback Ratio
Finance wants a simple efficiency metric for podcast sponsors. For each sponsor_id, return the ratio of total attributed_revenue to total media_spend rounded...
Company labels are directional practice context, not official interview guidance.
Objective
Practice query basics through a Spotify-tagged business scenario.
Approach
Use this track to lock in clean query structure, basic filtering logic, and confidence with grouped output.
Company context
Company labels are directional practice context, not official interview guidance.
Finance wants a simple efficiency metric for podcast sponsors. For each sponsor_id, return the ratio of total attributed_revenue to total media_spend rounded to two decimals. Sort by sponsor_id.
sponsor_campaigns
| campaign_id | sponsor_id | media_spend | 2 |
|---|---|---|---|
| 1 | 201 | 1200.00 | 3000.00 |
| 2 | 201 | 800.00 | 1400.00 |
| 3 | 305 | 1500.00 | 1800.00 |
| 4 | 412 | 900.00 | 2700.00 |
| 5 | 412 | 1100.00 | 2200.00 |
SQL workspace
Run queries against the protected question data, then submit once the result shape looks right.
Sign in to run SQL
Create a free account or sign in before running queries against protected question data.