Was this helpful?
Returns the sample covariance between of 2 numerical columns.
COVAR_SAMP(col1, col2) -> double
These examples are based on the .
This section contains reference documentation for the COVAR_SAMP function.
COVAR_SAMP(col1, col2) = COVAR_POP(col1, col2) * besselCorrection
SELECT COVAR_SAMP(numberOfGames, AtBatting) AS covariance FROM baseballStats
8270.973200974102