I want to update one column of first table with another column of other table with this query:
I need to update the both columns at a same time.
update tblMTD
set tblMTD.agedebt = OST.balance, OST.balance = '0'
from tblMTD
inner join OST on tblMTD.sub = OST.sub
I get an error:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "OST.balance" could not be bound.