Top Revenue Products H1
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
The revenue team needs the top 5 products by total revenue for January through June. Show each product's ID and total revenue. If products are tied at the cutoff, include all of them.
Summary
First half of the year. Which products led the revenue race?
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.