Function Reference > Functions > SOUNDEX
  

SOUNDEX

Encodes a string value into a four-character string.
SOUNDEX works for characters in the English alphabet (A-Z). It uses the first character of the input string as the first character in the return value and encodes the remaining three unique consonants as numbers.
SOUNDEX encodes characters according to the following list of rules:

Syntax

SOUNDEX( string )
Argument
Required/
Optional
Description
string
Required
Character string. Passes the string value you want to encode. You can enter any valid expression.

Return Value

String.
NULL if one of the following conditions is true:

Example

The following expression encodes the values in the EMPLOYEE_NAME column:
SOUNDEX( EMPLOYEE_NAME )SOUNDEX
EMPLOYEE_NAME
RETURN VALUE
John
J500
William
W450
jane
J500
joh12n
J500
1abc
A120
NULL
NULL