Ver Mensaje Individual
  #3  
Antiguo 20-06-2019
Avatar de newtron
[newtron] newtron is offline
Membrillo Premium
 
Registrado: abr 2007
Ubicación: Motril, Granada
Posts: 3.457
Reputación: 20
newtron Va camino a la fama
Bucanero.


Por lo menos en la base de datos que yo uso (ElevateDB) la sintaxis de las instrucciones que me propones no funciona pero ciertamente me has dado la pista y usando COALESCE si que he podido resolver el tema.



Código Delphi [-]
UPDATE ARTICULOS
SET EXISTT = COALESCE((SELECT SUM(EXISTENCIA) FROM EXISTENCIAS WHERE ARTICULOS.CODIGO=EXISTENCIAS.ARTICULO),0)


Gracias por tu ayuda y un saludo
__________________
Be water my friend.
Responder Con Cita