Loading...

March Revenue by Customer

A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
medium

Problem

Scope to transactions whose year-month is '2024-03'. Per user_id, SUM(total_amount). Return user_id and march_total sorted from highest to lowest, breaking ties by user_id ascending.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.