Loading interview...
Best Selling Product by Month
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
- mid
Interview Prompt
The merchandising team needs a monthly leaderboard of top-grossing products. Revenue is calculated as quantity times the product's listed price. Exclude any transaction where total_amount is negative, as those represent refunds. If two products tie in a given month, include both. Return the month, product name, and total revenue.
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