covar_samp

This function is used to return the sample covariance between two columns of numerical values.

Syntax

covar_samp(col1, col2)

Parameters

Table 1 Parameters

Parameter

Mandatory

Description

col1

Yes

Columns with a data type of numeric. If the values are of any other type, NULL is returned.

col2

Yes

Columns with a data type of numeric. If the values are of any other type, NULL is returned.

Return Values

The return value is of the DOUBLE type.

Example Code