DataDriven
LearnPracticeInterviewDiscussDailyJobs

Experiment Impact

A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
hard
Seniority
L5

Problem

Data science wants to rank A/B test performance inside each variant. For each (exp_name, variant) pair in experiments, compute the average outcome and participant count, skipping rows where outcome is NULL. Within each variant, rank experiments by average outcome from best to worst with ties sharing a position. Return the exp_name, variant, average outcome, participant count, and position.

Summary

Which experiments moved the needle? Rank them within each group.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons