题解 | #获取所有非manager员工当前的薪水情况#

获取所有非manager员工当前的薪水情况

http://www.nowcoder.com/practice/8fe212a6c71b42de9c15c56ce354bebe

多表连接+表子查询

select e.dept_no,t_emp,f.salary from dept_emp as e join (select t.emp_no as t_emp from employees as t left join dept_manager as c on t.emp_no=c.emp_no where dept_no is null )as g on t_emp=e.emp_no join salaries as f on t_emp=f.emp_no ;

全部评论

相关推荐

星辰再现:裁员给校招生腾地方
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务