Description
Returns an array that contains the matching elements in the two input arrays
Aliases: ARRAY_INTERSECT — equivalent spellings; same function and parameters.
Syntax
ARRAY_INTERSECTION(array1 , array2)
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| array1 | The array1 argument | Array | Yes |
| array2 | The array2 argument | Array | Yes |
Example
SELECT
ARRAY_INTERSECT(tags, other_tags)
FROM
rippling.employee.Employee
LIMIT
5;