Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
The MAX function returns the maximum value of the specified expression.
Syntax
MAX(<numeric_expr>)
Arguments
| Description | |
|---|---|
numeric_expr |
A numeric expression. |
Return types
Returns a numeric scalar value.
Examples
This section contains examples of how to use this query language construct.
Maximum value for a property
In this example, the MAX function is used to return the maximum value of the price property.
SELECT
MAX(p.price) AS maxPrice
FROM
products p
WHERE
p.category = "activity-bracelet"
[
{
"maxPrice": 71.76
}
]