Aggregate. Returns the sum of squares of the independent expressions used in a linear regression model. Use the REGR_SXX function to evaluate the statistical validity of a regression model.
REGR_SXX( dependent-expression , independent-expression )
dependent-expression | The variable that is affected by the independent variable. |
independent-expression | The variable that influences the outcome. |
REGR_COUNT( x, y ) * VAR_POP( x )
SQL/2003 SQL foundation feature (T621) outside of core SQL.
SELECT REGR_SXX()( Salary, ( 2008 - YEAR( BirthDate ) ) ) FROM Employees group by depart_IDWith a window:
SELECT REGR_SXX()( Salary, ( 2008 - YEAR( BirthDate ) ) ) FROM Employees KEEP 10 ROWS