Top Average By Region
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
- L5
Interview Prompt
We're comparing product categories by what a typical sale in them is worth, with sales in the transactions table and each product's category in the products table. Return the three categories with the highest average transaction amount, each with its average, highest first.
Summary
Region by region, who pulls the best average?
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