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

Home -> Community -> Mailing Lists -> Oracle-L -> CASE WHEN or DECODE - any efficiency differences

CASE WHEN or DECODE - any efficiency differences

From: Nicoll, Iain (Calanais) <iain.nicoll_at_calanais.com>
Date: Tue, 08 Jan 2002 08:09:57 -0800
Message-ID: <F001.003E99E3.20020108073534@fatcity.com>

I've just been asked whether there are any efficiency differences between CASE WHEN and DECODE. I'd imagined that they would use the same underlying code but perhaps not. Does anyone know which is more efficient (I realise that CASE is SQL-92 compliant and allows use of IN but excluding this is there any efficiency difference)

Cheers

Iain Nicoll
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Nicoll, Iain (Calanais)
  INET: iain.nicoll_at_calanais.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Jan 08 2002 - 10:09:57 CST

Original text of this message

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