1 Star 0 Fork 41

姚振鑫 / 力扣刷题

forked from 19级软件1班 / 力扣刷题 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
超过经理收入的员工.sql 371 Bytes
一键复制 编辑 原始数据 按行查看 历史
姚振鑫 提交于 2020-05-12 10:37 . sql
Create table Employee
(
Id int primary key identity(1,1) not null,
Name varchar(255) not null,
Salary int not null,
ManagerId int null,
)
insert into Employee(Name,Salary,ManagerId) values('joe',700,3),('Henry',800,4),('Sam',600,Null),('Max',900,Null)
select Name as Employee from Employee P where Salary> (select Salary from Employee A where A.Id=P.ManagerId)
SQL
1
https://gitee.com/yao_zhen_xin/leet_code_sql.git
git@gitee.com:yao_zhen_xin/leet_code_sql.git
yao_zhen_xin
leet_code_sql
力扣刷题
master

搜索帮助