The Heavy Hitters

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

An analyst suspects the catalog only looks diverse and that a handful of products carry most of the sales recorded in `transactions`, where a product's revenue is its total amount across every sale. Build her a leaderboard of the top 10, each product shown with its name from `products`, its total, and its position on the board.

Summary

Total sales tell the real story. Surface the products that carry the catalog.

How This Interview Works

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write and run your SQL against a real database
  4. Answer the interviewer's follow-up questions, then get a hire or no-hire decision