题解 | #获取所有非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 ;

全部评论

相关推荐

不如似了得了:淘天秒挂,原来是面试官在救我,令人暖心🥺
淘天集团稳定性 16人发布 投递淘天集团等公司10个岗位
点赞 评论 收藏
分享
点赞 收藏 评论
分享
牛客网
牛客企业服务