Your question is SQL Highest Salary Per Department. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
How would you write an SQL query to return the employee with the highest salary in each department?
Assume employees(employee_id, employee_name, department_id, salary) contains multiple employees per department. Return the department, employee ID, employee name, and salary. Clarify how your query handles ties, null salaries, and departments without valid salary values.