---
title: "concat_ws function in Strata | Oplema"
description: "Join text values with a separator between them, such as a comma and a space. Write it as concat_ws(separator, string, ...) in a Strata Formula or Filter."
url: "https://oplema.com/docs/strata/functions/concat-ws"
updated: "2026-11-04"
---

# concat\_ws

Join text values with a separator between them. Missing values are skipped.

## Try an expression

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

### Expression

```
concat_ws(', ', 'Banana', 'Apple', 'Melon')
```

### Result

```
'Banana, Apple, Melon'
```

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 | Banana, Apple, Melon |

## Arguments and types

```
concat_ws(separator, string, ...)
```

**separator**

Text

**string**

Any value

Supported signatures (1)

```
concat_ws(separator: VARCHAR, string: ANY, ...: ANY) → 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

[concat

Join text values or lists into one value. Missing values are skipped, while the || operator returns a missing value if any input is missing.

](https://oplema.com/docs/strata/functions/concat)[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)[hamming

Calculate the Hamming distance between two strings: the number of positions where their characters differ. Both strings must have the same length, and uppercase and lowercase letters count as different.

](https://oplema.com/docs/strata/functions/hamming)[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)

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

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