Mysql Min. The sql min and max functions the min function returns the smallest value of the selected column. Sql min function examples.
The min function returns the minimum value in a set of values. Introduction to mysql min function the min function returns the minimum value in a set of values. It is an aggregate function that is useful when we need to find the smallest number selecting the least expensive product etc.
Unlike other aggregate functions e g sum count and avg the distinct modifier is not applicable to the min function.
The distinct modifier is only for iso compatibility. See also the max function. Min function with group by in this page we are going to discuss how the group by clause along with the sql min can be used to find the minimum value of a column over each group. Min ignores any null values.