A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
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.
Summary
Two campaigns. Most of the budget.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.