---
title: "struct_extract_at function in Strata | Oplema"
description: "Get one entry from a struct by position, starting at 1. For example, struct_extract_at({'a': 10, 'b': 20}, 2) returns 20."
url: "https://oplema.com/docs/strata/functions/struct-extract-at"
updated: "2026-11-04"
---

# struct\_extract\_at

Get one entry from a struct by position, starting at 1.

## Try an expression

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

### Expression

```
struct_extract_at({'a': 10, 'b': 20}, 2)
```

### Result

```
20
```

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

Try it live in Formula

Result
| id | result |
| --- | --- |
| 1 | 20 |

## Arguments and types

```
struct_extract_at(struct, entry)
```

**struct**

Struct

**entry**

Number

Supported signatures (1)

```
struct_extract_at(struct: STRUCT, 'entry': BIGINT) → ANY
```

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

[struct\_extract

Get one entry from a struct by name, or by position starting at 1 in an unnamed struct.

](https://oplema.com/docs/strata/functions/struct-extract)[struct\_position

Find the position of a value in an unnamed struct, starting at 1.

](https://oplema.com/docs/strata/functions/struct-position)[struct\_insert

Add fields to an existing struct. Each new field takes its name from a named argument, as in struct\_insert(s, b := 2).

](https://oplema.com/docs/strata/functions/struct-insert)[struct\_pack

Create a struct from named arguments. Each field takes its name from its argument, as in struct\_pack(a := 1).

](https://oplema.com/docs/strata/functions/struct-pack)

[Browse structs](https://oplema.com/docs/strata/functions#structs) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/struct.html#struct_extract_atstruct-idx)

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