Most Efficient High-Volume Campaign
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L4
Problem
We want the campaign with the lowest peak monthly spend that still delivers at least 1 click every month it runs. Monthly clicks are the sum of clicked impressions, and monthly spend is the sum of revenue. Return just the campaign name.
Summary
High volume. Low cost. The dream campaign.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.