I\'m looking for a way to sequentially number rows in a result set (not a table). In essence, I\'m starting with a query like the following:
SELECT
In oracle the only database I know what you would want to do is do a sub select on the data
i.e.
select rownum, id , blah, blah
from (
select id, name FROM people WHERE name = 'Spiewak'
)
the basic concept is that the rownum will be evaluated on the result set returned from the inner select.
I hope this might point you to a solution that you can use.