- Returns
TRUEif any element in the array isTRUE. - Returns
FALSEif all elements in the array areFALSEor if the array is empty. - Returns
NULLif any element isNULLand no element isTRUE.
ARRAY_ANY_MATCH applies the function to each element and then evaluates the resulting array.
Alias: ANY_MATCH
Syntax
Parameters
Return Types
TheARRAY_ANY_MATCH function returns a result of type BOOLEAN.
Examples
Example The following code example checks if an array contains the valueesimpson as the result is_he_playing. Returns FALSE because the array does not contain the specified value.
Rows: 1Execution time: 5.59ms
divisible. Returns TRUE because at least one element in the first array is divisible by its corresponding element in the second array (45 / 15).
Rows: 1Execution time: 5.95ms
ARRAY_ANY_MATCH. Returns FALSE for the empty array, TRUE for the [TRUE] array, FALSE for the [FALSE] array, NULL for the [NULL] array, and NULL for the [FALSE, NULL] array.
Rows: 1Execution time: 5.87ms