Rating Tiers
A medium SQL mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- SQL
- Difficulty
- medium
- Seniority
- L4
Interview Prompt
The review team wants product ratings tiered inside each category with no gaps on ties. Within each category, rank products by rating with the highest rating at position 1; tied ratings share a position, and the next rating down takes the immediately following position. Skip products with no rating. Return the product_name, category, rating, and position.
Summary
No gaps, no skips. Ratings stacked tight within each category.
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