regr_slope()

Returns the slope of a regression line between two numerical fields.

regr_slope() follows this syntax.

SELECT regr_slope(FIELD1, FIELD2)
FROM DATASET;