Easy solution SQL SERVER
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\n/* Write your T-SQL query statement below */\nSELECT T2.name as \'Department\', T1.name as \'Employee\', T1.salary \'Salary\' FROM Employee T1 \nINNER JOIN Department T2 ON T1.departmentId = T2.Id\nWHERE T1.salary = (SELECT MAX(T3.salary) FROM Employee T3 \nWHERE T2.Id = T3.departmentId) \n\n```
['MS SQL Server']