Not really sure how to advise you with the information you provided. However, I could guess that you need to use a deriuved table (or inline view) or an outter apply in order to do the update. Here is an example of one way you might do that:UPDATE T
SET Column = D.SumColumn
FROM
TableName AS T
INNER JOIN
(
SELECT ID, SUM(columna - columnb) AS SumColumn
FROM TableName
GROUP BY Column_list
) AS D
ON T.ID = D.ID
If that doesn't help, here are some links that can help you provide more information:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx