第二名用小于第一名的方式表现出来,而第一名则用max实现
select e.emp_no, s.salary, e.last_name, e.first_name from salaries s join employees e on s.emp_no=e.emp_no where s.salary = (select max(salary) from salaries where to_date='9999-01-01' and salary < (select max(salary) from salaries where to_date='9999-01-01')) and s.to_date ='9999-01-01';