# Find the top 3 users by total spending

Canonical URL: <https://datadriven.io/problems/find-the-top-3-users-by-total-spending-show-userid-and-tot-d1fe99cd>

Domain: SQL · Difficulty: medium

## Problem

Find the top 3 users by total spending. Show user_id and total_spent (sum of total_amount), ordered from highest to lowest. Limit to 3 results.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/find-the-top-3-users-by-total-spending-show-userid-and-tot-d1fe99cd)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.