Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to get Order Number from a query with ORDER BY ?
This is SQL Standard and AFAIK works on Oracle:
SELECT ROW_NUMBER() OVER (ORDER BY c1) AS rn, c1
FROM T
ORDER BY c1
Cheers
Serge
Received on Thu Oct 07 2004 - 07:08:06 CDT