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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your sql solution with real code execution
  4. Get instant feedback and a hire/no-hire decision