SQL> select * from e2;
D1 D2 D3
--------- --------- ---------
02-JUN-99 03-JUN-99 04-JUN-99
20-FEB-81 21-FEB-81 22-FEB-81
22-FEB-81 23-FEB-81 24-FEB-81
02-APR-81 03-APR-81 04-APR-81
28-SEP-81 29-SEP-81 30-SEP-81
01-MAY-81 02-MAY-81 03-MAY-81
09-JUN-81 10-JUN-81 11-JUN-81
19-APR-87 20-APR-87 21-APR-87
17-NOV-81 18-NOV-81 19-NOV-81
08-SEP-81 09-SEP-81 10-SEP-81
23-MAY-87 24-MAY-87 25-MAY-87
03-DEC-81 04-DEC-81 05-DEC-81
03-DEC-81 04-DEC-81 05-DEC-81
23-JAN-82 24-JAN-82 25-JAN-82
14 rows selected.
SQL> select greatesT(max(d1),max(d2),max(d3)) from e2;
GREATEST(
---------
04-JUN-99
SQL>