Daily Net Revenue
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L4
Problem
Product 1001 needs a daily revenue reconciliation between January 1 and April 30, 2025. Positive transaction amounts are purchases and negative values are refunds. Include all qualifying purchases in that date range, plus any refunds for the same product regardless of date.
Summary
Net revenue, day by day. Refunds included.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.