maxMap
Calculates the maximum from value
array according to the keys specified in the key
array.
Syntax
or
Alias: maxMappedArrays
Note
- Passing a tuple of keys and value arrays is identical to passing two arrays of keys and values.
- The number of elements in
key
andvalue
must be the same for each row that is totaled.
Parameters
Returned value
- Returns a tuple of two arrays: keys in sorted order, and values calculated for the corresponding keys. Tuple(Array, Array).
Example
Query:
Result: