Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> exponential average
Hi,
Does anyone know how i can compute an exponential average using
analytical functions under Oracle. It is easy to get normal moving
average with avg(...) over(partition by ... order by ... rows 60
preceding) but how about getting :
x(n) + a*x(n-1) + a^2*x(n-2)+....
More generally, is it possible to compute a column using the value just computed in the row before ? Something like x(n+1) = f(x(n)) where n is the number of the row ?
Thanks by advance for any clue.
Laly. Received on Wed Dec 11 2002 - 13:38:24 CST
![]() |
![]() |