MySQL Forums
Forum List  »  Newbie

Re: Selecting all from tbl A that does not exist in tbl B
Posted by: Nick Roper
Date: April 29, 2005 11:39AM

Hi Fredik,

Try:

SELECT B.id as 'No match' FROM B LEFT JOIN A
ON B.id = A.id
WHERE A.id IS NULL;

Hope this helps,

Nick

--
Nick Roper

Options: ReplyQuote


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


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.