Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/09/2010, 02:26
Luggage186
 
Fecha de Ingreso: septiembre-2010
Mensajes: 4
Antigüedad: 13 años, 7 meses
Puntos: 0
Respuesta: Problema con una vista

Muy buena!

Lo habia solucionado asi:

Código:
select distinct fchpago_051, idmodulo_051 from T
where not exists
(select * from T
where idmodulo_051 = X and fchpago_051 is not null)
and idmodulo_051 = X
pero lo tuyo es sin duda una solucion muchisimo mejor! (para empezar porque me permite hacer la vista :P )