Ver Mensaje Individual
  #7  
Antiguo 29-01-2009
Avatar de ElKurgan
[ElKurgan] ElKurgan is offline
Miembro Premium
 
Registrado: nov 2005
Posts: 1.235
Reputación: 20
ElKurgan Va camino a la fama
¿Que base de datos estas utilizando? Lo digo porque en Oracle se puede hacer esto:

Código:
Select sum(Suma) from((select sum(M.VR_RC) Sumafrom FACTURA Fjoin PAGOS_DEL_MES M on M.FACTURA = F.NUMERO_FACTURAwhere  F.NUMERO_FACTURA = 29680)union(select sum(D.VR_RC) Sumafrom FACTURA Fjoin PAGOS_DEL_DIA D on D.FACTURA = F.NUMERO_FACTURAwhere  F.NUMERO_FACTURA = 29680))
Lo digo de memoria (no tengo a mano el Oracle para probarlo),
asi que no se si me he equivocado en algo

Un saludo
Responder Con Cita