Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: selecting a column according to a minimum

Re: selecting a column according to a minimum

From: Serge Rielau <srielau_at_ca.ibm.com>
Date: Mon, 18 Oct 2004 09:06:22 -0400
Message-ID: <2thtesF20dsjiU1@uni-berlin.de>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US