## Syntax
```mermaid
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> | | VIES_EU_VAT_COUNTRY[VIES_EU_VAT_COUNTRY]:::quoted
VIES_EU_VAT_COUNTRY --> End((END))
```
## Purpose
The `VIES_EU_VAT_COUNTRY` SQL function evaluates to text of the country linked to the EU VAT account provided (when the EU VAT account is valid and active). Each validation takes approximately 250 ms and uses the VIES service offered by the European Union.
Parameters:
- Phone: phone number as text.
- Country: country code as ISO 3166-1 alpha-2 code.
Returns: Phone number in E.164 notation format.