Link Search Menu Expand Document

ARRAY_MIN

Returns the minimum element in <arr>.

Syntax

ARRAY_MIN(<arr>)
Parameter Description
<arr> The array or array-type column to be checked

Example

SELECT
	ARRAY_MIN([ 1, 2, 3, 4 ]) AS res;

Returns: 1