UPDATE cm_serviceattr_instance a
SET a.attrcode = (SELECT b.attrcode
FROM pub_serviceattr_def b
where a.serviceattrid = b.serviceattrid)
where a.serviceattrid in(select b.serviceattrid from pub_serviceattr_def b);
SET a.attrcode = (SELECT b.attrcode
FROM pub_serviceattr_def b
where a.serviceattrid = b.serviceattrid)
where a.serviceattrid in(select b.serviceattrid from pub_serviceattr_def b);