## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> METAPHONE[METAPHONE]:::quoted METAPHONE --> End((END)) ``` ## Purpose The `METAPHONE` SQL function converts a value to the Metaphone code as defined on <a href="https://en.wikipedia.org/wiki/Metaphone">Wikipedia</a>. Parameters: - Input: value to convert to metaphone. - Length: maximum output length of the given input. Returns: the input converted to metaphone, with a given output length.