Loading...

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
mid

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.

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.