MySQL Forums
Forum List  »  General

Brain teaser - how to write this query w/out subselect
Posted by: arinaya
Date: April 15, 2005 01:14PM

Brain teaser for me at least.

What is the equivalent of the following query, without using subselect?

SELECT * FROM table1
WHERE id1 NOT IN
(SELECT id1 FROM table2
WHERE id2 = 99);

Your help is appreciated.
Thanks,
Arinaya

Options: ReplyQuote


Subject
Written By
Posted
Brain teaser - how to write this query w/out subselect
April 15, 2005 01:14PM


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.