![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
leetcode sql代码
059
这个作者很懒,什么都没留下…
展开
-
超过经理收入的员工
自连接 #自连接 select e.name Employee from Employee e, Employee m where e.ManagerId = m.Id and e.Salary > m.Salary;原创 2020-07-24 13:32:20 · 60 阅读 · 0 评论 -
组合两个表
左外连接。由person是否有地址,都要存在信息可知。 select p.FirstName, p.LastName, a.City,a.State from Person p left join Address a on p.PersonId = a.PersonId ;原创 2020-07-24 13:29:13 · 63 阅读 · 0 评论