# ARRAY_INTERSECTION() Function

### Description

Returns an array that contains the matching elements in the two input arrays

**Aliases:** `ARRAY_INTERSECT` — equivalent spellings; same function and parameters.

### Syntax

```sql
ARRAY_INTERSECTION(array1 , array2)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _array1_ | The array1 argument | Array | Yes |
| _array2_ | The array2 argument | Array | Yes |

### Example

```sql
SELECT
    ARRAY_INTERSECT(tags, other_tags)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/array_intersection

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
