Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/12/2005, 16:17
Avatar de Mithrandir
Mithrandir
Colaborador
 
Fecha de Ingreso: abril-2003
Mensajes: 12.106
Antigüedad: 21 años
Puntos: 25
Preba usando una tabla temporal antes:

SELECR SUM(tabla2.precio) AS campo
INTO #tblTemp
FROM tabla2 INNER JOIN tabla3
ON tabla2.enlace = tabla3.enlace
WHERE algún filtro


UPDATE t1
SET t1.campo = t2.campo
FROM tabla t1 INNER JOIN #tblTemp t2
ON t1.enlace = t2.enlace
__________________
"El hombre, en su orgullo, creó a Dios a su imagen y semejanza."
Friedrich Nietzsche