Maria22 de Octubre del 2003
Preguntahola,
estoy intentando hacer una UNION pero me peta...
select mn.fecha as ingreso
from datosMed mn
where
mn.fecha in (Select min(fecha) from datosMed where tipo="Ingreso")
UNION select mx.fecha as egreso
from datosMed mx
where
mx.fecha in (Select max(fecha) from datosMed where tipo="Salida");
me da error en las comillas del primer select
esta sentencia es correcta?
estoy intentando hacer una UNION pero me peta...
select mn.fecha as ingreso
from datosMed mn
where
mn.fecha in (Select min(fecha) from datosMed where tipo="Ingreso")
UNION select mx.fecha as egreso
from datosMed mx
where
mx.fecha in (Select max(fecha) from datosMed where tipo="Salida");
me da error en las comillas del primer select
esta sentencia es correcta?
