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: Problem with Decode fuction

Re: Problem with Decode fuction

From: Tom Miskiewicz <miskiewicz2_at_yahoo.com>
Date: Sun, 28 Sep 2003 21:43:31 +0200
Message-ID: <VRGdb.6$p1.19019@news.ecrc.de>

> Consider this:
>
> select decode(count(1),1,0,null) from DUAL
> where exists (select 1 from my_table
> where field 1 = 'STRING1' ......... )
>
> Case instead of Decode is easier to read if your version permits it.

What about this one?:

select decode(count(1),1,0,null) from DUAL where exists (select 1 from pm_ticketroutinglinks

              where classification = 'PROCUREMENT_NEW' AND
                    component_type = 'CLIENT_HARDWARE' AND
                    component      = 'PC_DELL');

Thanks
Tom Received on Sun Sep 28 2003 - 14:43:31 CDT

Original text of this message

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