Re: 'union' in cursor?
From: Gordon Rice <grice_at_netcomuk.co.uk>
Date: 1997/04/29
Message-ID: <01bc54e2$141083e0$LocalHost_at_grice>#1/1
Date: 1997/04/29
Message-ID: <01bc54e2$141083e0$LocalHost_at_grice>#1/1
I can't see anything wrong with your statement but if you want to get rid of the union then you can try the following.
SELECT doc.doc_id
FROM document doc
WHERE doc.doc_type = 20
AND (doc.documenttitle like '%TEST%' OR
EXISTS (SELECT NULL FROM segment seg WHERE seg.doc_id = doc.doc_id AND seg.segmenttitle like '%TEST%'));
Gordon Received on Tue Apr 29 1997 - 00:00:00 CEST