DataDrivenDataDriven
LearnPracticeInterviewDailyJobsCommunity

First Among Equals

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

Domain
SQL
Difficulty
medium
Seniority
L4

Problem

The merchandising team is drawing up a leaderboard of the products that move the most units, counting every unit across all of a product's orders. Return every product tied for the highest unit total, showing how many orders it took and the units it moved, listed alphabetically by name.

Summary

When more than one product wears the crown, name every one of them.

Practice This Problem

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

Related

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