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
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