应该有来源的吧(举个例吧):
update a set a1=b.col1,a2=b.col2,a3=b.col3 from table_result a ,(select 一级单位,二级单位,count(col1) as col1,count(col2) as col2,count(col3) as col3 from anothertalbe group by 一级单位,二级单位) b where a.一级单位=b.一级单位, and a.二级单位=b.二级单位
没有调试,也没有写过这样的语句(后面的)