Feature Flag Fan vs Detractor Pairs
A hard SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- hard
- Seniority
- L5
Interview Prompt
We run a feature-flag platform where every flag has an owner, an on/off state, and a rollout percentage. Treat the enabled flags as fans ordered by rollout from highest to lowest, and the disabled flags as opponents ordered by rollout from lowest to highest, then pair them off by position: top fan against top opponent, second against second, and so on. For each pairing return the fan's owner and the opponent's owner.
Summary
Some users love the flag. Others want it gone.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your sql solution with real code execution
- Get instant feedback and a hire/no-hire decision