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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query with Inner Join 1

Status
Not open for further replies.

jmcg

Technical User
Jun 30, 2000
223
GB
I have tried to run the following query on my SQL database:
UPDATE EnqData
INNER JOIN [SCARS] ON EnqData.SAC = [SCARS].SAC
SET EnqData.CYTD = [scars].[CYTD]
and this fails as an error near the word inner.
Any help? Where am I going wrong.
 

The proper syntax is.

UPDATE EnqData
SET EnqData.CYTD = [scars].[CYTD]
FROM EnqData
INNER JOIN [SCARS]
ON EnqData.SAC = [SCARS].SAC

Terry Broadbent
Please review faq183-874.

"The greatest obstacle to discovery is not ignorance -- it is the illusion of knowledge." - Daniel J Boorstin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top