Loading...
Experiment Variant Ratios
A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- mid
Problem
For each experiment, show the number of users in control, the number in treatment, and the ratio of treatment to control. If an experiment has no control users, the ratio should be null.
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.