## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> | | PHONE_NUMBER_TYPE[PHONE_NUMBER_TYPE]:::quoted
PHONE_NUMBER_TYPE --> End((END))
```
## Purpose
The `PHONE_NUMBER_TYPE` SQL function evaluates to the type of phone number: FIXED_LINE: fixed landline, FIXED_LINE_OR_MOBILE: either fixed landline phone or mobile number, MOBILE: mobile phone number, PAGER: pager, PERSONAL_NUMBER: personal phone number, PREMIUM_RATE: premium rate, SHARED_COST: shared cost, TOLL_FREE: toll-free, UAN: Universal Access Number; a phone number that can be accessed without dialing geographic area codes, UNKNOWN: unknown type, VOICEMAIL: voicemail, VOIP: VoIP. In case no country is specified, an E.164 notation is required.
Parameters:
- Phone: phone number as text.
- Country: country code as ISO 3166-1 alpha-2 code.
Returns: Type of phone number.