MySQL Forums
Forum List  »  General

SQL Select Issue
Posted by: Glenn Hancock
Date: March 28, 2006 11:02AM

I am trying to select all records that exist in table1 that do not exist in table 2. As an example: I am trying to do the following

select field1 from table1 where field1 not in (select field1 from table2 where field1=table1.field1)

This works on one db system but when I try it on mysql it fails but doesn't give me anything specific that failed, just message to check help file. But I can't find anything in docs on performing a not in function...

Any help?

Thanks,

glenn

Options: ReplyQuote


Subject
Written By
Posted
SQL Select Issue
March 28, 2006 11:02AM
March 28, 2006 01:15PM


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.