How to do an update from a select with summarized registers in SQLServer
A very powerful way to do a table's update in a SQL Server database is to link it with another table with a join, and updating the fields of everyone of its registers using the field's values of the registers linked with the another one. This technique had been discussed in the forum post Update with join or update from select in SQL Server..

Cómo hacer en SQL Server un update con join a partir de otra tabla con registros agregados, muy útil para actualizar cabeceras con valores de lineas.
Cómo Configurar un proyecto con Cognos PowerPlay Transformer de una máquina local para que se pueda crear un cubo directamente en el servidor Cognos