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 |
The VARIANCE function calculates the variance of a given expression using the following formula:

VARIANCE( [DISTINCT | UNIQUE | ALL] expression )
The following is an example that returns the variance of the number of gold medals that Korea won.
SELECT VARIANCE(gold)
FROM participant
WHERE nation_code = 'KOR';
Result : 5