Scott Scott - 27 days ago 7x
SQL Question

Select the minimum of two dates

I want to do the following:

SELECT min( date_1, date_2)
from dual;

But this will fail terribly because min only takes one parameter. Is there another way?

SELECT LEAST(date_1, date_2) FROM DUAL;

Oracle LEAST