Possible Duplicate:
Update a table using JOIN in SQL Server?
I am stuck on a very simple query, an update with a join, I want to put the value of the field RECORDTYPE in the RECORDTYPE field = to the value of TEMPLATETABLE.RECORDTYPE
I tried with this but I get continuous syntax errors, which is the problem?
update MAINTABLE MT
set MT.MYTYPE = TT.RECORDTYPE
inner join TEMPLATETABLE TT on TT.ID_RECORD_TEMPLATE = MT.ID_RECORD_TEMPLATE