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 Id for each row

Author  Topic 

ramdas
Posting Yak Master

181 Posts

Posted - 2002-11-12 : 14:50:32
Hi folks,
I am trying to genrate a row id for each row, is there a way to do it.
For example:
Select fname from customer

ID Fname
1 david
2 john
3 smith
etc....
Bye

Ramdas Narayanan
SQL Server DBA

smccreadie
Aged Yak Warrior

505 Posts

Posted - 2002-11-12 : 15:00:32
How about IDENTITY? There is no internal row numbering as there is in Oracle.

Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2002-11-13 : 12:37:10
search here for SEQUENCE NUMBERING or RUNNING TOTAL(s) or even ORACLE


This topic has has come up a lot....i think there is an 'official SQLTeam.com article' on solutions to same.

Go to Top of Page
   

- Advertisement -