---
title: soundex function
description: Learn the syntax of the soundex function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/soundex
---

# `soundex` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns the `soundex` code of the string.

## Syntax

```
soundex(expr)
```

## Arguments

* `expr`: A `STRING` expression.

## Returns

A `STRING`.

## Examples

```sql
> SELECT soundex('Miller');
 M460
```

## Related functions
