Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/08/2008, 06:14
seyko
 
Fecha de Ingreso: febrero-2007
Mensajes: 1.292
Antigüedad: 17 años, 2 meses
Puntos: 13
Respuesta: Duda con consulta

Es simple, prueba:
Código:
select campo_nichos 
from tabla_nichos
       JOIN (select id_nicho from tramites where estado = 'A' EXCEPT select id_nicho from tramites where estado != 'A') as tramites_A on tramites_A.id_nicho = tabla_nichos.id_nicho;
Salu2