The Three-Way Report
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L5
Problem
Combine session engagement with transaction revenue into a single user report. For each user, show their name, total session count, and total transaction amount. Users with zero sessions or zero transactions must still appear; the report cannot silently drop inactive users.
Summary
Three tables. One summary. Every piece depends on the others.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.