Loading...
Top 2 Ad Campaigns by Spend
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
Show the top two ad campaigns by total spend, excluding any campaign whose name contains 'test'. If campaigns are tied at the cutoff, include all of them.
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.