Hard
CTE
Top Earner Per Department (CTE)
Using a CTE, find the highest-paid employee in each department. Return columns: last_name, first_name, max_salary, department_id. Order results by: e.department_id.
Preparing the interactive SQL workspace...
Using a CTE, find the highest-paid employee in each department. Return columns: last_name, first_name, max_salary, department_id. Order results by: e.department_id.
Preparing the interactive SQL workspace...