标签:sum 排名 div employee 员工 first 描述 cin arch
无
emp_no | salary | last_name | first_name |
---|---|---|---|
10009 | 94409 | Peac | Sumant |
1 select e.emp_no, max(s.salary) , e.last_name, e.first_name 2 from employees e, salaries s 3 where s.to_date = ‘9999-01-01‘ and e.emp_no = s.emp_no and s.salary <> 4 (select max(salary) 5 from employees e, salaries s 6 where s.to_date = ‘9999-01-01‘ and e.emp_no = s.emp_no)
查找当前薪水(to_date='9999-01-01')排名第二多的员工编号emp_no、薪水salary、last_name以及first_name,不准使用order by
标签:sum 排名 div employee 员工 first 描述 cin arch
原文地址:https://www.cnblogs.com/hello-lijj/p/9507678.html