A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Problem
The experimentation team is identifying users who outperformed the control baseline. For each user in treatment_a whose metric value exceeds the average control value for the same test, show the user ID, their treatment value, and the average control value.
Summary
Treatment beat control. For these users.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.