Contents Index SORTKEY function [String] SPACE function [String]

ASA SQL Reference
  SQL Functions
    Alphabetical list of functions

SOUNDEX function [String]


Function 

Returns a number representing the sound of a string.

Syntax 

SOUNDEX ( string-expression )

Parameters 

string-expression    The string.

Usage 

The SOUNDEX function value for a string is based on the first letter and the next three consonants other than H, Y, and W. Doubled letters are counted as one letter. For example,

SOUNDEX( 'apples' )

is based on the letters A, P, L and S.

Multi-byte characters are ignored by the SOUNDEX function.

Although it is not perfect, SOUNDEX will normally return the same number for words that sound similar and that start with the same letter.

The SOUNDEX function works best with English words. It is less useful for other languages.

Standards and compatibility 
Example 

The following statement returns two numbers, representing the sound of each name. The SOUNDEX value for each argument is 3827.

SELECT SOUNDEX( 'Smith' ), SOUNDEX( 'Smythe' )

Contents Index SORTKEY function [String] SPACE function [String]