---
title: "upper function in Strata | Oplema"
description: "Convert text to uppercase, for example to compare labels or display codes. Write it as upper(string) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/upper"
updated: "2026-11-04"
---

# upper

Standardize text in uppercase before comparing labels or displaying codes.

Also available as ucase.

## Try an expression

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

Example input

1. Row 1 `name = 'Ada'`
2. Row 2 `name = 'Lin'`
3. Row 3 `name = NULL`

### Expression

```
upper(name)
```

### Result

```
Row 1: 'ADA'
Row 2: 'LIN'
Row 3: NULL
```

NULL means the value is missing.

Try it live in Formula

Result
| id | name | result |
| --- | --- | --- |
| 1 | Ada | ADA |
| 2 | Lin | LIN |
| 3 |  |  |

## Arguments and types

```
upper(string)
```

**string**

Text

Supported signatures (1)

```
upper(string: VARCHAR) → VARCHAR
```

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

[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)[least

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

](https://oplema.com/docs/strata/functions/least)[nfc\_normalize

Converts string to Unicode NFC normalized string. Useful for comparisons and ordering if text data is mixed between NFC normalized and not.

](https://oplema.com/docs/strata/functions/nfc-normalize)[split\_part

Split text at a separator and retrieve one part by its position.

](https://oplema.com/docs/strata/functions/split-part)

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

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