Aggregate. Computes the slope of the linear regression line fitted to non-NULL pairs.
regr_slope ( dependent-expression , independent-expression )
dependent-expression | The variable that is affected by the independent variable. The expression accepts numeric datatypes, except timestamp, bigdatetime, and interval. |
independent-expression | The variable that influences the outcome. The expression accepts numeric datatypes, except timestamp, bigdatetime, and interval. |
covar_pop( x, y ) / var_pop( y )