Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

MAX

Example

 Retrieve the price of the highest-priced product from the “Products” table.

SELECT MAX(Price) AS LargestPrice FROM Products; 

Definition and Usage

 The MAX() function retrieves the highest value within a set of values.

Note: Also refer to the MIN() function for finding the minimum value.

Syntax

MAX(expression)

Parameter Values

Parameter

Description

expression

Mandatory: A numerical value, which can be either a field or a formula. 

Technical Details

Works in: From MySQL 4.0