Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 1.73 KB

File metadata and controls

65 lines (47 loc) · 1.73 KB
description
Returns the standard deviation of non-NULL values in a column with a numeric data type. If all records inside a group are NULL, returns NULL.

STDDEV

Syntax

STDDEV(numeric_expression double) → double

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

Examples

{% code title="STDDEV example" %}

SELECT STDDEV(gas_used) 
FROM eth.recent_blocks
-- 2.2596650338461766

{% endcode %}

STDDEV(numeric_expression float) → double

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

Examples

{% code title="STDDEV example" %}

SELECT STDDEV(gas_used) 
FROM eth.recent_blocks
-- 2.2596650338461766

{% endcode %}

STDDEV(numeric_expression int32) → double

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

Examples

{% code title="STDDEV example" %}

SELECT STDDEV(transaction_count) 
FROM eth.recent_blocks
-- 1.3670214641762426

{% endcode %}

STDDEV(numeric_expression int64) → double

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

Examples

{% code title="STDDEV example" %}

SELECT STDDEV(transaction_count) 
FROM eth.recent_blocks
-- 1.3670214641762426

{% endcode %}