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_at_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 - 15:06:22 CEST

Original text of this message