This is an example of what the input table/query results look like
Client-id AvgCreated transactions (number) Created transactions
(number) SumOfTrx EUR amount Processing date
321 61.25 37 3323.764519 10-May-12
321 61.25 64 3368.360543 11-May-12
321 61.25 70 2089.86874 12-May-12
321 61.25 8
319.7241606 13-May-12
321 61.25 55 4633.419834 14-May-12
321 61.25 40 5408.707927 15-May-12
321 61.25 25 3101.684803 16-May-12
321 61.25 119 8539.954168 17-May-12
321 61.25 165 4005.622306 18-May-12
321 61.25 9
447.8219273 19-May-12
321 61.25 8 457 20-May-12
321 61.25 75 8387.034963 21-May-12
321 61.25 43 1224.691638 22-May-12
321 61.25 0 4351.174432 23-May-12
The output for this after the query would be
321 61.25 0 4351.174432 23-May-12
Because the value of created trans on 23 May was 0 but the previous 5
days had values