# MAX

The MAX function returns the maximum value of a specified field.

## Syntax

`MAX(field)`

### Parameters

#### field

The column for which you want to find the maximum value.

## Examples

Finds the highest value in the `languages` column from the `employees` table:

```esql
FROM employees
| STATS MAX(languages)
```

Calculates the largest average salary change across all employees:

```esql
FROM employees
| STATS max_avg_salary_change = MAX(MV_AVG(salary_change))
```
