Ver Mensaje Individual
  #2 (permalink)  
Antiguo 31/01/2009, 05:14
seyko
 
Fecha de Ingreso: febrero-2007
Mensajes: 1.292
Antigüedad: 17 años, 1 mes
Puntos: 13
Respuesta: sacar datos de dos tablas

Código:
select * 
from peticiones
where activo
and id_peticion not in (select id_peticion from peticiones where id_candidato = X)
Salu2