Date Functions: Least

Description: Returns the earliest date.

LEAST(<date>, <date>, <date>, ...)
SELECT * FROM t;
 
SELECT LEAST(datecol1, datecol2, datecol3) FROM t;

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.