#184

LeetCode:Department Highest Salary

本秂侑毒 提交于 2019-12-06 12:01:48
1、题目名称 Department Highest Salary(部门内最高工资) 2、题目地址 https://leetcode.com/problems/department-highest-salary/ 3、题目内容 表Employee包括四列:Id、Name、Salary、DepartmentId +----+-------+--------+--------------+ | Id | Name | Salary | DepartmentId | +----+-------+--------+--------------+ | 1 | Joe | 70000 | 1 | | 2 | Henry | 80000 | 2 | | 3 | Sam | 60000 | 2 | | 4 | Max | 90000 | 1 | +----+-------+--------+--------------+ 表Department表中包括了公司的所有部门 +----+----------+ | Id | Name | +----+----------+ | 1 | IT | | 2 | Sales | +----+----------+ 现要求写一个SQL,求出某一部门内领取最高工资的员工。 +------------+----------+--------+ | Department