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)
 Numbering rows returned from a query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-10-25 : 16:18:47
Chris writes "Is is possable to number the rows that are returned from a single select statement. It is easily done in a stored procedure, but I would like to do this in a one pass select statement. For example, If I had a two column table with first and last name, I would like to see the result set look like:


1 Chris Taylor
2 Joe Smith
3 John Doe"
   

- Advertisement -