Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Is there a better way than two "exists" and a union?
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
![]() |
![]() |