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)
 ROW NUMBER function in sql server 2000

Author  Topic 

anup_snwn
Starting Member

6 Posts

Posted - 2008-01-09 : 01:00:15
hi friends

i am using following row number function in my sql server 2005 :

select appno,row_number() over(partition by appno order by appno) from tab

which is giving following result :

100 1
100 2
200 1
200 2
200 3
300 1
300 2
300 3

but now i want the same result in sql server 2000
but this row number function not supported in sql 2000
so plz give me any alternate solution for this....

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-01-09 : 03:04:41
http://www.sqlservercentral.com/Forums/Topic440426-8-1.aspx

Madhivanan

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

- Advertisement -