Ver Mensaje Individual
  #2  
Antiguo 15-12-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
mira de probar algo así...

Código:
select (D1.APELALU || ', ' || D1.NOMALU) as APENOM, D1.NUMALU, SUM(0 - D2.impdebe + D2.imphaber)
from clientes D1
   inner join econo D2 on (D2.NUMALU = D1.numalu)
GROUP BY apenom, D1.NUMALU
having SUM(0 - D2.impdebe + D2.imphaber) <> 0
Responder Con Cita