I hope this is the right forum for this type of question.
Is it possble to return an incrementing record count with SQL. I'm using Crystal Reports 9 sql editor against an Oracle database.
For example I have a simple SQL query like this ......
which returns this .......
[blue]
dave
peter
sandra
rebecca
wayne
[/blue]
The question is, how would I get an output like this ........
[green]
1 dave
2 peter
3 sandra
4 rebecca
5 wayne
[/green]
I think there is a field called "rownum" in Oracle SQL but not sure if I can use.
Any ideas or suggestions would be appreciated.
Thanks.
Is it possble to return an incrementing record count with SQL. I'm using Crystal Reports 9 sql editor against an Oracle database.
For example I have a simple SQL query like this ......
Code:
SELECT employee_name FROM employees
which returns this .......
[blue]
dave
peter
sandra
rebecca
wayne
[/blue]
The question is, how would I get an output like this ........
[green]
1 dave
2 peter
3 sandra
4 rebecca
5 wayne
[/green]
I think there is a field called "rownum" in Oracle SQL but not sure if I can use.
Any ideas or suggestions would be appreciated.
Thanks.