获取当前第二多的员工
获取当前薪水第二多的员工的emp_no以及其对应的薪水salary,不准使用order by
http://www.nowcoder.com/questionTerminal/c1472daba75d4635b7f8540b837cc719
select e.emp_no,max(s.salary),e.last_name,e.first_name from employees as e inner join salaries as s on e.emp_no = s.emp_no where to_date = '9999-01-01' and salary < (select max(salary) from salaries as s where s.to_date = '9999-01-01' )