Top Product Categories
A medium 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
- medium
- Seniority
- L4
Interview Prompt
A retail marketplace's merchandising team wants the categories that sell best among its well-reviewed products, where category lives on the products table and each transaction points at a product by id. Return the top three categories by transaction count, each with its count and its standing.
Summary
Top three categories by page views.
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