STRING_MAX_EACH
Collects the maximum value provided in VALUE
for each GROUP
.
Syntax
STRING_MAX_EACH ([MAX VALUES, ]GROUP, VALUE)
Arguments
MAX VALUES:
An expression of INTEGER
type for how many values to return.
The default is adequate in most cases. MAX_VALUES
is a "soft" limit,
which may be used in order to optimize response times.
GROUP:
A grouping field.
VALUE:
An expression of a STRING
type that can be ordered.
Returns
An array of pairs with a key of type GROUP
and a corresponding value of type STRING
.
Example
Data
Query
When was the most recent entry for each group (serverIp):
Results
Related Functions
Dialog
Last updated