I have been using Oracle for years and have some queries that utilize "rownum" in retrieving a row counter for each record in the result set. Does SQL Server have a similar capability?
Any and all help is much appreciated.
Thanks in advance!
Tom
sql:
select rownum,first_name from people;
result set:
ROWNUM FIRST_NAME
------ ----------------------
1 Alice
2 Rachel
3 Bob
4 Nick
Any and all help is much appreciated.
Thanks in advance!
Tom
sql:
select rownum,first_name from people;
result set:
ROWNUM FIRST_NAME
------ ----------------------
1 Alice
2 Rachel
3 Bob
4 Nick