Scenario SQL Question
Top 3 Earners Per Department (ROW_NUMBER ≤ 3)
Build mastery in Ctes Window with this scenario-based SQL challenge and live execution support.
Problem Statement
List the three highest-paid employees in each department, with their in-department rank. Return department_name, first_name, last_name, salary, dept_rank — ordered by department_name, dept_rank.
Relevant Tables
employeesdepartments
SQL Concepts Used in This Scenario
Strengthen your understanding with these targeted learning topics: