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
 Transact-SQL (2000)
 sql query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-02-08 : 10:15:14
Jack writes "Hi,
I am a beginner in SQL Server ,I think my question will be a simple one for u guys , but I could not solve it , may be my IQ is low.

Will you please give me a sql query to find second highest salary in employee table ( it will be better if the query is a generalised one like finding n th salary where 'n' can be 2nd , 3rd...n)

ThANX IN ADVANCE"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2002-02-08 : 10:17:15
graz's article "What's After Top?"

http://www.sqlteam.com/item.asp?ItemID=566

Should get you going.

Go to Top of Page
   

- Advertisement -