MySQL Max Function

Profile picture for user arilio666

MySQL Max() function fetches the max value in a set of values in a table column.

Syntax:

MAX(exp)

Example:

Let us use the 'emp' table and fetch the max valued office code.

how to find max value in mysql

select max(officeCode) from emp

mysql get max value

So this is how we can use the max function in MySQL effectively.

Tags