如何编写查询以从表中选择前5名工资?
答案 0 :(得分:3)
SELECT TOP 5 Salary
FROM SalariesTable
ORDER BY Salary DESC
答案 1 :(得分:2)
SELECT TOP 5 Salary
FROM Salaries
ORDER BY Salary DESC
答案 2 :(得分:2)
获得TOP 5
最高工资:
SELECT DISTINCT TOP 5 MAX(Salary)
FROM Salaries
GROUP
BY Salary
ORDER
BY Salary DESC;