This is the select statement I was trying to use, this works on another machine with the same version of Oracle 8.1.6...... but get an error on mine?
SELECT
avg_temp,
month, year,
to_char(avg(avg_temp)
OVER (order by year,month rows between 11 preceding and current row),
'99D9')
as avg_year_temp from scottish_weather;
Thanks