Ver Mensaje Individual
  #3  
Antiguo 11-11-2009
celades1 celades1 is offline
Miembro
 
Registrado: ago 2005
Posts: 116
Reputación: 19
celades1 Va por buen camino
hola

A ver no se entiende bien lo que quieres
Pero lo que yo te pongo son los destinos sin ningun pasaje.


Código SQL [-]
select a.NombreDestino from HorariosDestinos a
where not exists (select null from pasajes b 
where b.idhorarioDestino=a.idhorarioDestino and 
extract(year from b.fecha)=2008 and
extract(month from b.fecha)=2)


Bueno no se si es lo que quieres, si no vuelve a explicarte

Saludos
Responder Con Cita