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

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

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

Syntax:

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