SOUNDEX
Sintassi
%%{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.
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:
select soundex('smith') soundex1
, soundex('smythe') soundex2
-------- --------
S530 S530
L'esempio seguente recupera il codice Soundex dell'Robert:
select soundex('Robert')
-------------------
R163