![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/02/2014, 13:14
|
![Avatar de Libras](http://static.forosdelweb.com/customavatars/avatar147802_5.gif) | Colaborador | | Fecha de Ingreso: agosto-2006 Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 18 años, 6 meses Puntos: 774 | |
Respuesta: Problemas con instrucción UPDATE seria algo asi:
Código SQL:
Ver originalTABLA1: TAG, CantComprada, CantRecibida, CantDespachada TABLA2: TAG, NumVale,Fecha,Cantidad UPDATE tabla1 SET cantdespachada=t1.cantidad FROM ( SELECT cantidad,tag FROM tabla2 ) AS t1 WHERE tabla1.tag=t1.tag
__________________ What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me |