Skip to content

Latest commit

 

History

History
66 lines (48 loc) · 1.89 KB

File metadata and controls

66 lines (48 loc) · 1.89 KB
description
Returns the population standard deviation (square root of variance) of non-NULL values in a column with a numeric data type. If all records inside a group are NULL, returns NULL.

STDDEV_POP

Syntax

STDDEV_POP(numeric_expression double) → double

  • numeric_expression: The set of records to calculate the population standard deviation for.

Examples

{% code title="STDDEV_POP example" %}

SELECT STDDEV_POP(gas_used) 
FROM eth.recent_blocks
-- 2.259665030506379

{% endcode %}

STDDEV_POP(numeric_expression float) → double

  • numeric_expression: The set of records to calculate the population standard deviation for.

Examples

{% code title="STDDEV_POP example" %}

SELECT STDDEV_POP(gas_used) 
FROM eth.recent_blocks
-- 2.259665030506379

{% endcode %}

STDDEV_POP(numeric_expression int32) → double

  • numeric_expression: The set of records to calculate the population standard deviation for.

Examples

{% code title="STDDEV_POP example" %}

SELECT STDDEV_POP(transaction_count) 
FROM eth.recent_blocks
-- 1.367021462155777

{% endcode %}

STDDEV_POP(numeric_expression int64) → double

  • numeric_expression: The set of records to calculate the population standard deviation for.

Examples

{% code title="STDDEV_POP example" %}

SELECT STDDEV_POP(transaction_count) 
FROM eth.recent_blocks
-- 1.367021462155777

{% endcode %}