إشعار
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تسجيل الدخول أو تغيير الدلائل.
يتطلب الوصول إلى هذه الصفحة تخويلاً. يمكنك محاولة تغيير الدلائل.
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
}
]