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?
Try
SELECT top.*, NVL((SELECT 'YES' FROM childoftop WHERE ct_top_id = top_id AND ROWNUM = 1),'NO') FROM top
HTH. Michael Received on Fri Mar 15 2002 - 07:51:11 CST