REGR_SYY
返回依赖表达式 (expression1) 与其平均值之间的差值的平方和。
即,REGR_SYY 返回:∑[(expression1 - average(expression1)(expression1 - average(expression1)]
返回值的类型为 DOUBLE PRECISION。 REGR_SYY 消除表达式对中任一表达式为 NULL 的表达式对。如果没有剩余行,REGR_SYY 返回 NULL。
语法
SELECT REGR_SYY ( expression1, expression2 )
参数
示例
=> SELECT REGR_SYY (Annual_salary, Employee_age) FROM employee_dimension;
REGR_SYY
------------------
69956728794707.2
(1 row)