UNION en ORACLE
Buenos dias,
alguno de vosotros sabe porque está consulta no funciona en oracle, no le gustan las comilllas, esta bien así?
select mn.fecha as ingreso ,' ' as egreso
from datosMed mn
where
mn.fecha in (Select min(fecha) from datosMed where tipo="Ingreso")
UNION select '' as ingreso ,mx.fecha as egreso
from datosMed mx
where
mx.fecha in (Select max(fecha) from datosMed where tipo="Salida");
alguno de vosotros sabe porque está consulta no funciona en oracle, no le gustan las comilllas, esta bien así?
select mn.fecha as ingreso ,' ' as egreso
from datosMed mn
where
mn.fecha in (Select min(fecha) from datosMed where tipo="Ingreso")
UNION select '' as ingreso ,mx.fecha as egreso
from datosMed mx
where
mx.fecha in (Select max(fecha) from datosMed where tipo="Salida");
