题解 | #查找在职员工自入职以来的薪水涨幅情况#

查找在职员工自入职以来的薪水涨幅情况

http://www.nowcoder.com/practice/fc7344ece7294b9e98401826b94c6ea5

select emp_no,max(growth) as growth from (select emp_no,salary,max_salary-salary as growth from (select a.emp_no,a.salary,b.max_salary from salaries as a left join (select emp_no,salary as max_salary from salaries where to_date='9999-01-01') as b on a.emp_no=b.emp_no where max_salary is not null) as c) as d group by emp_no order by growth 层层剥削

全部评论

相关推荐

冲芭芭拉鸭:你这图还挺新,偷了。
投递美团等公司10个岗位
点赞 评论 收藏
分享
找不到工作死了算了:没事的,雨英,hr肯主动告知结果已经超越大部分hr了
点赞 评论 收藏
分享
评论
点赞
收藏
分享
牛客网
牛客企业服务