我如何从员工表中找到第二高的薪水? [英] How would I find the second largest salary from the employee table?
本文介绍了我如何从员工表中找到第二高的薪水?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我该如何查询Employee表中所有雇员的第二大薪水?
How would I go about querying for the second largest salary from all employees in my Employee table?
推荐答案
尝试一下:
SELECT max(salary)
FROM emptable
WHERE salary < (SELECT max(salary)
FROM emptable);
这篇关于我如何从员工表中找到第二高的薪水?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文