argAndMin
argAndMin
Introduced in: v1.1
Calculates the arg and val value for a minimum val value.
If there are multiple rows with equal val being the minimum, which of the associated arg and val is returned is not deterministic.
Both parts the arg and the min behave as aggregate functions, they both skip Null during processing and return not Null values if not Null values are available.
Note
The only difference with argMin is that argAndMin returns both argument and value.
See also
Syntax
Arguments
arg— Argument for which to find the minimum value.const Stringval— The minimum value.(U)Int8/16/32/64orFloat*orDateorDateTimeorTuple
Returned value
Returns a tuple containing the arg value that corresponds to minimum val value and the minimum val value. Tuple
Examples
Basic usage
Extended example with NULL handling
Using Tuple in arguments
See also