bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL MAX() Function

Example

SELECT MAX(Price) AS LargestPrice FROM Products;

Definition and Usage

The MAX() function returns the maximum value in a set of values.

Note

See also the MIN() function.

Syntax

MAX(
expression
)

Parameter Values

ParameterDescription
expressionRequired. A numeric value (can be a field or a formula)

Technical Details

Works in:From MySQL 4.0

Previous

MySQL LOG2() Function

Next

MySQL MIN() Function