# Join users, transactions, and products to show what each user purchased

Canonical URL: <https://datadriven.io/problems/join-users-transactions-and-products-to-show-what-each-use-e223b8d7>

Domain: SQL · Difficulty: medium

## Problem

Join users, transactions, and products to show what each user purchased. Use INNER JOINs to connect all three tables through transactions. Return username, product_name, and total_amount.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/join-users-transactions-and-products-to-show-what-each-use-e223b8d7)
- [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.