in reply to Re^2: Conversion to SPROC
in thread Conversion to SPROC
SELECT Sum_count = sum(Person_count), Aggregated_area INTO #tmp_B FROM Geo_postaggregated_pop_count GROUP BY Aggregated_area; UPDATE Geo_postaggregated_pop_count SET Sum_of_person_count = t.Sum_count FROM Geo_postaggregated_pop_count G , #tmp_B t WHERE G.Aggregated_area = t.Aggregated_area
|
|---|