Ver Mensaje Individual
  #5  
Antiguo 31-01-2011
abelg abelg is offline
Miembro
 
Registrado: jul 2004
Posts: 50
Reputación: 20
abelg Va por buen camino
Si tienes dos tablas con estructura similar y almacenas pagos para diferenciarlos sola mente, es lo más aproximado que te puedo dar lo siguiente.

Select id_cielnte,
fecha_pago,
monto,
'Efectivo'as tipo_pago
from pago_efectivo
where id_cliente = xxx
union
Select
id_cleinte,
fecha_pago,
monto,
'Con Tarjeta'as tipo_pago
from pago_tarjeta
where id_cliente = xxx
orderby fecha_pago

Responder Con Cita