SQL
MySQL GREATEST() Function
Return the greatest value of the list of arguments: