not single-group grouping function while using regr_slope
- by Peter Kaleta
HI I try to run : 
 select
  year,
  regr_slope(sum(sale_count),year) as slope,
from products
group by year
It throws "00937. 00000 -  "not a single-group group function"" .When i delete year from select clause problem disapears. Shouldn't I be able to select column with which I'm grouping?
Oracle 11.2 sqldeveloper
ty for help !