Loading...

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
mid, senior

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.

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.