with fix as (select guid, geometry::UnionAggregate(shape) as geom
from GeomCollection
group by guid)

UPDATE       SharedGeom
SET                Geom = fix.geom from
sharedgeom sg inner join fix on sg.guid = fix.guid