Search
⌘K

Leetcode 184. Department Highest Salary

Find employees with the highest salary in each department by grouping employees by department, computing the max salary per group, and selecting all employees whose salary equals that max (including ties). Join with the Department table to return Department name, Employee name, and Salary.

Asked at:

Apple


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid September, 2024

Apple

Senior

SQL queries to find top employees with the highest salary from each department

Comments

Your account is free and you can post anonymously if you choose.