Situation, I need to sum up data in a table A and then update table B, with the data in table A.
Normally I would Create a temp table and insert all the selected/sumed data (table A) into the temp table, then update table A from the temp table.
Does anyone have a better way to do this? Maybe an update statement with a subquery?