Leetcode的SQL题:181. 超过经理收入的员工

链接:https://leetcode.cn/problems/employees-earning-more-than-their-managers/

我的代码:

select a.name Employee from employee a
where a.salary>
	(select b.salary from employee b
      where a.managerid =b.id)

执行结果

提交结果 执行用时 内存消耗 语言 提交时间 备注
通过
1137 ms 0 B MySQL 2022/07/01 14:58

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章