Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I retrieve top 10 salaries using SQL query

Status
Not open for further replies.

mohanq

Technical User
Jun 12, 2002
8
US
Hi,

How can i get top 10 salaries from employee table, where employee table has the following columns:-

empno int,
empname varchar(35),
age int,
salary double,
location varchar(50)

If any one knows the solution for my question, pls let me know.

Thanks in advance,
mohan.



 
select top 10 salary order by salary desc

or

select distinct top 10 salary order by salary desc

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top