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

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-21 : 09:37:57
Rajith writes " hi friends...


i have table which has 3 fields ,i want know wht is the sql syntax for rownumber.

something like

SELECT rownum,field11,field2 FROM tabel ;

is there any syntax giving row number in SQL Server 2000


best regards

Rajith Alwis"

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-07-21 : 10:34:59
No. but there are workaround. see http://www.sqlteam.com/item.asp?ItemID=1491



KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-21 : 11:03:31
Where do you want to show data?
If you use front end application, do numbering there

Madhivanan

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

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-07-21 : 11:05:32
Madhivanan you are back. Busy lately ?


KH

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-07-21 : 11:59:39
Yes. I am busy and may not post much in coming days

Madhivanan

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

- Advertisement -