Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: selecting a column according to a minimum
SELECT i FROM
(SELECT MIN(j) OVER() as minj, j , i FROM T
WHERE [condition]) AS X WHERE minj = j
Whether that is faster or slower than your original depends on the Oracle's internals which I don't know.
Cheers
Serge
Received on Mon Oct 18 2004 - 08:06:22 CDT