查找当前薪水(to_date='9999-01-01')排名第二多的员工编号不使用order by完成吗
获取当前薪水第二多的员工的emp_no以及其对应的薪水salary
http://www.nowcoder.com/questionTerminal/c1472daba75d4635b7f8540b837cc719
select e.emp_no,s.salary,e.last_name,e.first_name
from employees e , salaries s
on e.emp_no = s.emp_no
and s.to_date='9999-01-01'
and s.salary = (select max(s.salary) from salaries s
where s.salary <
(select MAX(s.salary)from salaries s)
limit 0,1
);