MySQL Forums
Forum List  »  Newbie

Re: no MINUS???
Posted by: Ramalingam Chelliah
Date: August 21, 2004 06:46AM

Hi ,
If you need to eliminate some(selected)results( from another select statement) of a select statement ,
Check whetherLeft Join Helps You

Join the tables using some criteria

Then in Where Clause give Conditions as in Select statement 1

and negative conditions (opposite ) conditions from Select statement two.

SELECT <table1.required fields> FROM
table1,table2
WHERE <join condition> i.e,using which key(s) you are joining)
AND <condition to be given in SELECT statement1>
AND <negated conditions to be given in SELECT statement 2>

Hope this helps ....
(If you use same table then give alias name for atleast once)

Regards,
Ram.



We Learn the Most When we have to Invent

Options: ReplyQuote


Subject
Written By
Posted
August 20, 2004 10:51AM
Re: no MINUS???
August 21, 2004 06:46AM


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.