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
- Seniority
- L3
Problem
Finance is breaking down March revenue by customer. For every user who transacted that month, show the user ID and the total they spent, biggest spender first, with the user ID as the tiebreaker.
Summary
One month, every customer, every dollar accounted for.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.