Skip to main content
Alias: min_by

argMin

Introduced in: v1.1.0 Calculates the arg value for a minimum val value. If there are multiple rows with equal val being the maximum, which of the associated arg 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. See also Syntax
Aliases: min_by Arguments Returned value Returns the arg value that corresponds to minimum val value. Type matches arg type. Examples Basic usage
Query
Response
Extended example with NULL handling
Query
Response
Using Tuple in arguments
Query
Response
Last modified on June 23, 2026