Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

STDDEV Function

Description

The STDDEV function calculates the standard deviation of a given expression.

Syntax

STDDEV( [DISTINCT | UNIQUE | ALL] expression )

  • expression : Specifies the expression to calculate the standard deviation.
  • ALL : Gets the standard deviation of all values (default).
  • DISTINCT or UNIQUE : Gets the standard deviation of unique values without duplicates.
Example

The following is an example that returns the standard deviation of the number of gold medals that Korea won in the Olympic Games from 1988 to 2004.

SELECT STDDEV(gold)
FROM participant
WHERE nation_code = 'KOR';

Result : 2