Search ⌘K
Spotify
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...

Foundations Track
Easy
15 min
query basics
aggregation

Company labels are directional practice context, not official interview guidance.

Timer 00:00
Back to practice

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.

Prereq: query basics
Prereq: filtering

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 INT
sponsor_id INT
media_spend NUMERIC(10
2
campaign_idsponsor_idmedia_spend2
12011200.003000.00
2201800.001400.00
33051500.001800.00
4412900.002700.00
54121100.002200.00
Editor
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.