I am looking for a way to add a record number count to a selection query like below:
what I am looking for is:
Thanks in advance
Code:
select field1, field2, field3
from table
where field1 = 'data'
output is:
field1 field2 field3
------ ------ ------
data data data
... ... ...
what I am looking for is:
Code:
select recnum?, field1, field2, field3
from table
where field1 = 'data'
output to be:
recnum? field1 field2 field2
------- ------ ------ ------
1. data data data
2. ... .... ...
etc....
Thanks in advance