请在 下方输入 要搜索的题目:

有表tab(name varchar(20), id int, sal int)分别表示员工姓名、员工号、薪水,如何查找出薪水第二高的员工的薪水?


A、select max(sal) from tab where sal B、select min(sal) from (select sal from tab order by sal limit 2);
C、select sal from tab order by sal desc limit 1 offset 1;
D、select max(sal) from tab where sal not in (select max(sal) from tab)

发布时间:2025-08-19 16:44:24
推荐参考答案 ( 由 快搜搜题库 官方老师解答 )
联系客服
答案:select max(sal) from tab where sal not in (select max(sal) from tab)
专业技术学习
专业技术学习
搜搜题库系统