MySQL Forums
Forum List  »  Oracle

Efficient MINUS relacement
Posted by: Simon Cranmer
Date: April 15, 2005 01:07AM

Dear All,

I am wondering if there is a more efficient way to rewrite a MINUS union select I have. So far my only solution is to have a left join and exclude the NULL columns. E.g.

SELECT a.id
FROM a
LEFT JOIN b ON b.id = a.id
WHERE b.id IS NULL


Thanks in advance,

Simon.

Options: ReplyQuote


Subject
Views
Written By
Posted
Efficient MINUS relacement
20036
April 15, 2005 01:07AM
6365
September 11, 2008 12:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.