Divide employee metrics into 3 performance tiers within each department, based on metric_value from
A medium SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.
- Domain
- SQL
- Difficulty
- medium
Problem
Divide employee metrics into 3 performance tiers within each department, based on metric_value from highest to lowest. Show department, metric_name, metric_value, and the tier number. Order by department and metric_value descending.
Practice This Problem
Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a real database and grades it automatically.