REGR_SYY

functionsupportedCore SQL functions

docs.snowflake.com ↗

Aggregate functionsWindow function syntax and usage

Returns REGR_COUNT(y, x) * VAR_POP(y) for non-null pairs.

Syntax

supportedpartialnot supportednot scored

Aggregate function

REGR_SYY(y, x)

Window function

REGR_SYY(y, x) ( [ PARTITION BY <expr3> ] )

Parameters

NameRequiredDescription
yrequiredThe dependent variable. This must be an expression that can be evaluated to a numeric type.
xrequiredThe independent variable. This must be an expression that can be evaluated to a numeric type.
expr3requiredThis is the optional expression used to group rows into partitions.

Returns

If any of the input expressions is of type DECFLOAT, the returned type is DECFLOAT. Otherwise, the returned type is FLOAT.

Usage notes