In Oracle, it\'s possible to do a SELECT statement that returns the row number as a column in your result set.
SELECT
For example,
SELECT rownu
Unfortuantely, i dont think therei s a way to do it, easiest is probably inner join with itself with an inline table of id,count(*), and put an outer select statement