The Biggest Fish
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- mid
Problem
A loyalty team wants the customer who spends the most in each product category so they can plan outreach. For every category, return that customer and their total spend across the category.
Summary
In every aisle, one customer outspends the rest. Find them.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.