Market Share
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
An investor slide claims every category earns nearly all its revenue from products we can ship today, and merchandising doesn't believe it: rebuild it from `transactions` and `products` as each category's percentage of its own revenue coming from products currently in stock, most in-stock first.
Summary
Every category wants a bigger slice.
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