A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
Between March 1 and June 1, 2026, find the users with the highest daily spending. If a user placed multiple orders on the same day, sum those amounts. If multiple users tie for the highest daily total on a given date, return all of them. Every username is unique.
Summary
Somewhere in that window, someone broke the spending record.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.