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)
 row number

Author  Topic 

gsrinivas.
Yak Posting Veteran

56 Posts

Posted - 2009-04-25 : 04:48:17
what is the rownumber function in sql server 2000.
i.e.,

i want to select the 5 th row of a table .
using rownumber....

thanks..

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-04-25 : 04:57:16
I think you are talking about row_number() in sql server 2005...
It is not available in sql server 2000.
Here is "workaround"?
http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/13daeb85-da43-4166-b188-595a4a5d5282
Webfred


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-04-25 : 05:09:01
quote:
Originally posted by gsrinivas.

what is the rownumber function in sql server 2000.
i.e.,

i want to select the 5 th row of a table .
using rownumber....

thanks..




http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/find-nth-maximum-value.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -