DataDriven
LearnPracticeInterviewDiscussDailyJobs

Best-Selling Reps Each Month

A easy SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
easy
Seniority
L4

Problem

The sales team is identifying top buyers within each product category for January. Within each category, find the 3 highest-spending users by total transaction amount. If users tie, they share the same position and all should be included. Show the user ID, total amount, category, and transaction date.

Summary

In every category, a few sellers rise to the top.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons