ARRAY_MIN

functionsupportedCore SQL functions

docs.snowflake.com ↗

Semi-structured and structured data functions

Given an input ARRAY, returns the element with the lowest value that is not a SQL NULL. If the input ARRAY is empty or contains only SQL NULL elements, this function returns NULL.

Syntax

ARRAY_MIN( <array> )

Parameters

NameRequiredDescription
arrayrequiredThe input ARRAY.

Returns

This function returns a VARIANT that contains the element with the lowest value that is not a SQL NULL. The function returns NULL if array is NULL, empty, or contains only SQL NULL elements.

Usage notes