Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/08/2006, 09:13
maurimono
 
Fecha de Ingreso: octubre-2004
Ubicación: Santiago de Chile
Mensajes: 504
Antigüedad: 19 años, 6 meses
Puntos: 0
Se me ocurre hacer algo asi:
alter session set nls_comp=binary (rapidez)

select monto, id_cliente,fech_vencimiento
from factura a
where fech_vencimiento in
(select max(fech_vencimiento) from factura x where fech_vencimiento <= to_date('30/06/2006') and x.id_cliente = a.id_cliente)
and monto >=10000 and monto <=30000
__________________
Dios es mas grande que tu problema :-)