UPDATE id SET id.NARC = aop5.sn FROM IDENTIFICATION_DATA id, aop5 ao WHERE SUBSTRING(ao.NSN, 6, 11) = id.NIIN