update work_table set name=QA.name from work_table W join quality_assurance QA on W.ID=QA.ID where W.name<>QA.name