Question : INSERT INTO and subquery with a join and complex where clause

Why doesn't this statement work?  I receive  - invalid syntax on line 9 at ').

1:
2:
3:
4:
5:
6:
7:
8:
9:
INSERT INTO document_group (documentid, groupid)
SELECT document.documentid, 199991
FROM document
WHERE 
(SELECT document_group.documentid, document.documentnumber, document.documentid
FROM document_group RIGHT JOIN document ON 
document_group.documentid = document.documentid
WHERE document_group.documentid is null 
and document.documentnumber = 'ABC1212008')

Answer : INSERT INTO and subquery with a join and complex where clause

I followed your link, but right now it does not appear as if you will successfully recover this install.

I would fix the fan first. Heat will burn your/her legs, ruin the finish on your table or desk, and cause all sorts of other problems with the motherboard and other hardware. It could easily cause your hard drive to fail prematurely. I hope that has not already started and is the cause for your current situation. Fix the fan first.

Then, install 7.

Lee

Random Solutions  
 
programming4us programming4us