Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Compute average SQL statement
Hi,
i'm looking for a sql statement to compute an average from the following sample:
Week Value_a Avg.
1 10 10 / 1= 10 2 20 (10+20) / 2 = 15 3 5 (10+20+5 ) / 3 = 11,66....
The average Avg. should be computed out of Value_a for each week.
Thanks.
Hendrik Received on Wed Jan 07 2004 - 04:32:40 CST
![]() |
![]() |