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

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