Love and Loathing
A hard SQL mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- 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 teams champion the flag. Others would kill it.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your SQL against a real database
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision