Loading...

Top Spenders Dense Rank

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

Domain
SQL
Difficulty
easy
Seniority
junior

Problem

Show the top 5 users by total transaction value. Tied users share the same rank with no gaps. Include all tied users at each rank.

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.