题解 | 获取员工其当前的薪水比其manager当前薪水还高的相关信息

获取员工其当前的薪水比其manager当前薪水还高的相关信息

https://www.nowcoder.com/practice/f858d74a030e48da8e0f69e21be63bef

select s.emp_no, dm.emp_no, s.salary, sm.salary
from dept_emp de left join dept_manager dm on de.dept_no = dm.dept_no
join salaries s on de.emp_no = s.emp_no
join salaries sm on sm.emp_no = dm.emp_no
where s.salary > sm.salary
and de.to_date ='9999-01-01'
and dm.to_date ='9999-01-01'
and s.to_date ='9999-01-01'
and sm.to_date ='9999-01-01'

全部评论

相关推荐

高歌起舞:今年AI相关岗位卡九卡本特别严重
我的求职进度条
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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