I have this Delete Query that works fine in Access, but in SQL Server Management Studio it shows this error.
QUERY;
UPDATE RFQ INNER JOIN Quote ON RFQ.RFQ = Quote.RFQ SET RFQ.Status = 'Lost', Quote.Status = 'Expired'
WHERE (((RFQ.Status)='active') AND ((Quote.Status)='active') AND ((RFQ.Quote_Date)<='7/1/2010'));
ERROR:
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'INNER'.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'RFQ'.
QUERY;
UPDATE RFQ INNER JOIN Quote ON RFQ.RFQ = Quote.RFQ SET RFQ.Status = 'Lost', Quote.Status = 'Expired'
WHERE (((RFQ.Status)='active') AND ((Quote.Status)='active') AND ((RFQ.Quote_Date)<='7/1/2010'));
ERROR:
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'INNER'.
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near 'RFQ'.