MySQL Forums
Forum List  »  Newbie

Selecting all from tbl A that does not exist in tbl B
Posted by: Fredrik Dahlin
Date: April 29, 2005 09:15AM

Hello!

I have what I hope to be a simple question. I have two tables A and B. They both have one column "id". Lets say that A contains

id
====
1
2
3

And B contains

id
====
1
2
3
4

Now, I would like to make a query that will tell me which rows in B that does not have a match in A. In the above case, it would only be the row with '4'. Can anyone help me out?

Regards
/Fredrik

Options: ReplyQuote


Subject
Written By
Posted
Selecting all from tbl A that does not exist in tbl B
April 29, 2005 09:15AM


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.