Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select where not in problem

Status
Not open for further replies.

Niv3k

Programmer
Jul 11, 2001
350
US
I have two tables tDocumentsCommon and tDocumentExceptions. This is my query:

mysql> select * from tDocumentsCommon Where DocumentID NOT IN (SELECT DocumentID FROM tDocumentExceptions WHERE CompanyID=6);

Yet when I run this I get the following error:
ERROR 1064: You have an error in your SQL syntax near 'SELECT DocumentID FROM tDocumentExceptions WHERE CompanyID=6)' at line 1

Any ideas?

Kevin
 
Is that a subselect? I thought MySQL didn't support subselects.

--jim
 
Well, that's annoying, but apparently true... darn.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top