Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 about sql query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-06-10 : 08:15:34
ravi writes "how do i reteive maximum two salaries from EMP table"

drymchaser
Aged Yak Warrior

552 Posts

Posted - 2004-06-10 : 09:00:06
Look up TOP in BOL.
Go to Top of Page

JasonGoff
Posting Yak Master

158 Posts

Posted - 2004-06-10 : 09:47:59
SELECT TOP 2 Salary
FROM EMP
ORDER BY Salary DESC
Go to Top of Page
   

- Advertisement -