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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Is there a better way than two "exists" and a union?

Re: Is there a better way than two "exists" and a union?

From: Stephan Bressler <stephan.bressler_at_pdb.sbs.de>
Date: Fri, 15 Mar 2002 13:36:01 +0100
Message-ID: <a6spra$ete$1@news.mch.sbs.de>


Hi Gary,

maybe a outer join will do. Try

select top_id, decode(childoftop.ct_id, NULL, 'NO','YES') from top, childoftop
where top.top_id = childoftop.top_id (*)

Regards
Stephan Received on Fri Mar 15 2002 - 06:36:01 CST

Original text of this message

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