> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# max

> Returns the maximum value of the expr expression.

Returns the maximum value of the expr expression.

## Syntax

```Haskell theme={null}
MAX(expr)
```

## Examples

```plain text theme={null}
MySQL > select max(scan_rows)
from log_statis
group by datetime;
+------------------+
| max(`scan_rows`) |
+------------------+
|          4671587 |
+------------------+
```

## keyword

MAX


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.