Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding a 'counter' to a query's output 1

Status
Not open for further replies.

VickyC

Technical User
Sep 25, 2010
206
CA
hello

Lets say I have SQL like...

SELECT qryVal.V1, qryVal.V2, qryVal.V3
FROM qryVal ...etc, that produces typical output like...

V1 V2 V3
12 42 29
51 23 99
...etc

What is the best way to add a field that starts at 1 and
increments by 1 for each row.

N V1 V2 V3
1 12 42 29
2 51 23 99
...etc

Thank you



 

Check the FAQs for this forum. A couple refer to this request.


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top