invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

SQRT

Syntax

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> SQRT[SQRT]:::quoted
    SQRT --> End((END))

Purpose

The SQRT SQL function returns the square root of the provided number.

See also POWER.

Parameters:

  • Input (decimal): the number to get the square root of.

Returns: A number which represents the square root of the provided number.

Examples

The following example retrieves the square root of 256:

select sqrt(256)

-------------------
16

The following example retrieves the square root of 2:

select sqrt(2)

-------------------
1.4142135623731