invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

DMETAPHONE

Syntax

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

Purpose

The DMETAPHONE SQL function converts a value to the Metaphone code as defined on Wikipedia.

Parameters:

  • Input (varchar2): value to convert to double metaphone.

Returns: the four character double metaphone of the input as a varchar2.

Examples

The following example retrieves the double metaphone of fabulous:

select dmetaphone('fabulous')

-------------------
FPLS

The following example retrieves the double metaphone of success:

select dmetaphone('success')

-------------------
SKSS