oracle数据库里的查询问题,请大侠们帮帮忙啊

oracle数据库里的查询问题,请大侠们帮帮忙啊
Display the last name and salary of every employee who reports to King.
这个我写了下面的语句:
select last_name,salary
from employees
where job_id
这个后面怎么写的,怎么写出是who reports to King,我理解的意思是那些员工都归King管理吧,也就是manager,
jackyfansx 1年前 已收到1个回答 举报

小苍兰 幼苗

共回答了19个问题采纳率:100% 举报

select last_name,salary from employees where mgr=(select empno from emp where ename='KING')

1年前

8
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 16 q. 0.771 s. - webmaster@yulucn.com