Description
Determines if the input arrays have any elements in common
Syntax
ARRAYS_OVERLAP(array1 , array2)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| array1 | The array1 argument | Array | Yes |
| array2 | The array2 argument | Array | Yes |
Notes
- Returns TRUE if there is any element common to both arrays
- Returns FALSE if they have no elements in common
- Returns NULL if either input is NULL
Example
SELECT
ARRAYS_OVERLAP(tags, other_tags)
FROM
rippling.employee.Employee
LIMIT
5;