## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> SUBSTR[SUBSTR]:::quoted SUBSTR --> End((END)) ``` ## Purpose The `SUBSTR` SQL function gets a substring from the input. Parameters: - Input: text to gather the substring from. - Start: start position. - Lenght: maximum lenght of the substring. Returns: the substring from the original input.