Loading...
Ad Revenue by Age Bucket
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- junior, mid
Problem
The ad monetization team is evaluating which user demographics drive the most revenue. Show the total ad revenue for each age bucket, with the highest-earning buckets first. Exclude users who have no age bucket on file.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.