---
title: "least function in Strata | Oplema"
description: "Return the smallest of its arguments, ignoring missing values. For example, least(42, 84) returns 42. Works in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/least"
updated: "2026-11-04"
---

# least

Return the smallest of its arguments, ignoring missing values. Text is compared by character, so uppercase letters count as smaller than lowercase letters.

## Try an expression

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

### Expression

```
least(42, 84)
```

### Result

```
42
```

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 | 42 |

## Arguments and types

```
least(arg1, ...)
```

**arg1**

Any value

Supported signatures (1)

```
least(arg1: ANY, ...: ANY) → ANY
```

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

## Things to know

### With a missing first argument

```
least(NULL::INTEGER, 84)
```

84

## Related functions

[greatest

Return the largest of its arguments, ignoring missing values. Text is compared by character, so lowercase letters count as larger than uppercase letters.

](https://oplema.com/docs/strata/functions/greatest)[hash

Calculate a numeric hash of one or more values. It isn't a cryptographic hash, so don't use it for security.

](https://oplema.com/docs/strata/functions/hash)[jaccard

Score how similar two strings are by the characters they share, from 0 to 1. Uppercase and lowercase letters count as different.

](https://oplema.com/docs/strata/functions/jaccard)[jaro\_similarity

The Jaro similarity between two strings. Characters of different cases (e.g., a and A) are considered different. Returns a number between 0 and 1. For similarity < score\_cutoff, 0 is returned instead. score\_cutoff defaults to 0.

](https://oplema.com/docs/strata/functions/jaro-similarity)

[Browse numbers](https://oplema.com/docs/strata/functions#numbers) [DuckDB documentation](https://duckdb.org/docs/current/sql/functions/text.html#leastarg1)

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