码迷,mamicode.com
首页 > 数据库 > 详细

LeetCode SQL:Employees Earning More Than Their Managers

时间:2015-05-22 01:53:44      阅读:164      评论:0      收藏:0      [点我收藏+]

标签:

# Write your MySQL query statement below
SELECT a.Name FROM Employee AS a
INNER JOIN Employee AS b ON a.ManagerId = b.Id
WHERE a.Salary > b.Salary

让我来看看讨论区,并没有发现更好的

LeetCode SQL:Employees Earning More Than Their Managers

标签:

原文地址:http://www.cnblogs.com/lailailai/p/4521272.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!