Hi Friends,
I have two tables EMP1 and EMP2 with column hiredate.
I want to get the mininum of the max(hiredate) of the two tables.
Can u help me pls....
This doesnt work:
A.
SELECT MIN(SELECT MAX(HIREDATE) FROM EMP1 UNION
SELECT MAX(HIREDATE) FROM EMP2)
FROM DUAL;
B.
SELECT MIN(HIREDATE) FROM
(SELECT MAX(HIREDATE) FROM EMP1 UNION
SELECT MAX(HIREDATE) FROM EMP2);
Any other constructs pls
Thanks a lot