Possible Duplicate:
How to select top N from a table
How can a write a query for selecting the top 5 salaries from table ?
Possible Duplicate:
How to select top N from a table
How can a write a query for selecting the top 5 salaries from table ?
To get the TOP 5
highest Salaries:
SELECT DISTINCT TOP 5 MAX(Salary)
FROM Salaries
GROUP
BY Salary
ORDER
BY Salary DESC;