PostgreSQLAggregate FunctionsVAR_SAMP
VAR_POP

VAR_SAMPAggregate Functions

CORR

Returns the sample variance.

Syntax

VAR_SAMP(expr)

Example

Enter values below to update the example in real time.

price
samp_var
products
SELECT VAR_SAMP(price) AS samp_var FROM products;