Ver Mensaje Individual
  #2  
Antiguo 11-11-2004
Avatar de Investment
Investment Investment is offline
Miembro
 
Registrado: may 2003
Posts: 378
Reputación: 24
Investment Va por buen camino
En SQL SERVER puedes hacer lo siguiente:

Código:
select distinct
(select sum(ISNULL(a.VALOR,0)) from T_ABONOS a where a.TIPO = 1) -
(select sum(ISNULL(a.VALOR,0) from T_ABONOS a where a.TIPO = 2) from T_ABONOS
No se si esto funcionará contra Firebird 1.5
__________________
Saludos,
Peter Investment
Responder Con Cita