Update multiple columns from other Table via Join
update franchisees
set
franchisees.posid=temp.POSID,
franchisees.poskey=temp.[POS Key]
from franchisees f
inner join [Table_Two] temp on f.AccountCode=temp.AccountCode
set
franchisees.posid=temp.POSID,
franchisees.poskey=temp.[POS Key]
from franchisees f
inner join [Table_Two] temp on f.AccountCode=temp.AccountCode
Comments