Scenario SQL Question
Find Highest Salary in Each Department
Build mastery in Ranking Nth Value with this scenario-based SQL challenge and live execution support.
Problem Statement
Return the highest-paid employee in EACH department. If two employees tie for highest in a department, return BOTH. Show department_id, first_name, last_name, salary — ordered by department_id then first_name.
Relevant Tables
employees
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: