Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/05/2010, 10:48
jlgarcia1977
 
Fecha de Ingreso: octubre-2008
Ubicación: Madrid
Mensajes: 352
Antigüedad: 15 años, 7 meses
Puntos: 5
error sintaxis UNION

tengo un error de sintaxis en la siguiente query y no se que es...
Si alguien me puede decir si ve el erro de la query.

Gracias.

select "FECHA_ENTREVISTA", "FECHA_ALTA" FROM abalia.candidatos
where
"FECHA_ENTREVISTA" is not null
and "FECHA_ALTA" is not null
order by "FECHA_ENTREVISTA" desc,"FECHA_ALTA" desc
union
select "FECHA_ENTREVISTA", "FECHA_ALTA" FROM abalia.candidatos
where
"FECHA_ENTREVISTA" is null
and "FECHA_ALTA" is null