Profitable Categories by Price
An easy 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
- easy
- Seniority
- L4
Interview Prompt
The `products` table holds one row per catalog item with its `category`, `price`, `rating` and an `in_stock` flag. Report the lowest price and the average rating for every category whose items average a rating of at least 3.0.
Summary
The most profitable categories.
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