---
title: "SOUNDEX"
description: "La funzione SQL SOUNDEX converte un valore nel codice Soundex come definito su Wikipedia."
language: it
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/it/docs/invantive-universalsql/grammar/sql-functions/soundex
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/soundex
updated: 2026-12-04T14:26:15Z
license: https://documentation.invantive.eu/it/
---

## Sintassi
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> SOUNDEX[SOUNDEX]:::quoted
    SOUNDEX --> End((END))
```

## Scopo
La funzione SQL `SOUNDEX` converte un valore nel codice Soundex, come definito su [Wikipedia](https://en.wikipedia.org/wiki/Soundex).

Vedi anche [[METAPHONE]] e [[DMETAPHONE]].

Parametri:
- Input (`varchar2`): Testo da cui ricavare il valore Soundex.

Restituisce: un testo che inizia con un numero seguito da 3 cifre.

## Esempi
L'esempio seguente recupera il codice Soundex di `smith` e `smythe`; nonostante la diversa ortografia, i codici Soundex sono identici:
```sql
select soundex('smith') soundex1
,      soundex('smythe') soundex2

-------- --------
S530     S530
```
L'esempio seguente recupera il codice Soundex dell'`Robert`:
```sql
select soundex('Robert')

-------------------
R163
```

