描述
有一个薪水表salaries简况如下:
请你获取薪水第二多的员工的emp_no以及其对应的薪水salary
SELECT emp_no, salary FROM salaries WHERE to_date='9999-01-01' and salary = (SELECT salary FROM salaries WHERE to_date = '9999-01-01' GROUP BY salary ORDER BY salary DESC LIMIT 1,1 )
2023-12-18 19:55:57
请你获取薪水第二多的员工的emp_no以及其对应的薪水salary
SELECT emp_no, salary FROM salaries WHERE to_date='9999-01-01' and salary = (SELECT salary FROM salaries WHERE to_date = '9999-01-01' GROUP BY salary ORDER BY salary DESC LIMIT 1,1 )