David Mac writes "I'm looking for a way to calculate rolling averages. I assume that this could be done using cursors, but is there an easier way?For example I have data in a table:DATE SCORE1/1/01 202/1/01 30 3/1/01 104/1/01 0
I want to return a recordset:DATE SCORE AV1/1/01 20 20 (20/1)2/1/01 30 25 (20+25/2)3/1/01 10 20 etc4/1/01 0 15
The AV column is the average of the scores of all records up to and including the record in question. Easy to do in Excel!The table is fairly large, so performance is a real issue.thanks"