---
title: "list_has_all function in Strata | Oplema"
description: "Check whether a list contains every value from a second list, returning true or false. For example, list_has_all([1, 2, 3], [2, 3]) returns true."
url: "https://oplema.com/docs/strata/functions/list-has-all"
updated: "2026-11-04"
---

# list\_has\_all

Check whether a list contains every item of a second list. Missing values are ignored.

Also available as array\_has\_all.

## Try an expression

In [Formula](https://oplema.com/docs/strata/prep/formula), enter the expression and set Output type to **BOOLEAN**.

### Expression

```
list_has_all([1, 2, 3], [2, 3])
```

### Result

```
true
```

To use your own data, replace the example values with column names. Keep format strings and other options as written.

This Boolean expression also works in [Filter](https://oplema.com/docs/strata/prep/filter) custom mode. For the literal inputs above, the row goes to the True output. A missing result goes to False.

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | true |

## Arguments and types

```
list_has_all(list1, list2)
```

**list1**

List

**list2**

List

Supported signatures (1)

```
list_has_all(list1: T[], list2: T[]) → BOOLEAN
```

The result type can depend on the input types. See DuckDB for the full argument rules.

## Things to know

If the first argument is missing, the result is NULL.

## Related functions

[list\_filter

Keep the list items for which a lambda expression returns true. The lambda result must be convertible to BOOLEAN, and the output has the same type as the input list.

](https://oplema.com/docs/strata/functions/list-filter)[list\_has\_any

Check whether two lists share at least one item. Missing values are ignored.

](https://oplema.com/docs/strata/functions/list-has-any)[list\_contains

Check whether a list contains a value.

](https://oplema.com/docs/strata/functions/list-contains)[list\_intersect

Return the distinct items that appear in both lists.

](https://oplema.com/docs/strata/functions/list-intersect)

[Browse lists & arrays](https://oplema.com/docs/strata/functions#lists-&-arrays) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/list.html#list_has_alllist1-list2)

Function metadata from DuckDB, used under the [MIT license](https://github.com/duckdb/duckdb/blob/v1.5.4/LICENSE).
