Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
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
}
]