OracleAggregate FunctionsREGR_SLOPE
COVAR_POP

REGR_SLOPEAggregate Functions

GROUPING

Returns the slope of the linear regression.

Syntax

REGR_SLOPE(y, x)

Example

Enter values below to update the example in real time.

salary
years_experience
slope
employees
SELECT REGR_SLOPE(salary, years_experience) AS slope FROM employees;