Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/06/2011, 09:14
Avatar de Libras
Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Actualización de tabla SQL Server 2000

Update tabla_1
set value=t1.value
from
(select datos from tabla_1
left join tabla_2 on (tabla_1.id=tabla_2.id)
where tabla2.id is null) as t1 where t1.id=tabla_1.id


Seria algo mas o menos asi :)

Saludos!
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me