[discrete]
[[esql-agg-max]]
=== `MAX`

*Syntax*

[source,esql]
----
MAX(column)
----

*Parameters*

`column`::
Column from which to return the maximum value.

*Description*

Returns the maximum value of a numeric column.

*Example*

[source.merge.styled,esql]
----
include::{esql-specs}/stats.csv-spec[tag=max]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/stats.csv-spec[tag=max-result]
|===
