Forum Discussion

Tony2021's avatar
Tony2021
Steel Contributor
May 26, 2023

Add a row counter in a query

Hello, I have a query and I need to add a row counter.  

How can I do this?  

 

SELECT CoID, CompanyName
from tblCompanies

 

Example:

1 Co A

2 Co B

3 Co C

 

I need to add the 1,2,3...n

 thank you very much. 

 

Resources