Ver Mensaje Individual
  #3  
Antiguo 11-11-2004
jbetancurt jbetancurt is offline
Registrado
 
Registrado: nov 2004
Posts: 6
Reputación: 0
jbetancurt Va por buen camino
Gracias por la pista...

listo ya encontre como... no era con 'ISNULL(a.VALOR,0))' pero era la ecencia
si alguien mas le sirve es de la siguiente forma......
Código SQL [-]
 
select distinct
(select COALESCE(sum(a.VALOR),0) from T_ABONOS awhere a.TIPO = 1) -
(select COALESCE(sum(a.VALOR),0) from T_ABONOS awhere a.TIPO = 2)from T_ABONOS

y no

Código SQL [-]
 
select distinct
(select sum(a.VALOR) from T_ABONOS awhere a.TIPO = 1) -
(select sum(a.VALOR) from T_ABONOS awhere a.TIPO = 2)from T_ABONOS
Responder Con Cita