Q&A
Ask and answer questions to make information more available to wider audiences.
Nolan Lovechic @nolanlovechic   19, Jul 2023 12:00 AM
MAX() function
What is the usage of MAX() function in MariaDB?
answers 1
 
Answer 1
Ethan Barbrow @ethanbarbrow   09, Aug 2023 03:24 PM
MariaDB MAX() function is used to retrieve the maximum value of the expression.

MAX () can take string argument too, in which case it returns the maximum string values.

MAX () returns NULL if there were no matching rows.

Syntax:

SELECT MAX(aggregate_expression)      
FROM tables      
[WHERE conditions];