Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
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.
All Regions
Mid September, 2024
Apple
Senior
SQL queries to find top employees with the highest salary from each department
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.