POWER
Syntax
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> POWER[POWER]:::quoted
POWER --> End((END))
Purpose
The POWER SQL function gets a value of a number raised to another.
Parameters:
- Value (
decimal): a number. - Exponent (
decimal): a number.
Returns: the value of a number raised to another.
Examples
The following example retrieves 2 raised to the power 10:
select power(2, 10)
-------------------
1024
The following example retrieves 9 raised to the power 0.5, being the square root of 9:
select power(9, 0.5)
-------------------
3