Hi,
Can someone help me how to get the running total based on the time, I have requirement where I need to calculate the running total of each ip for a certain period of time until the users leaves that ip, below is the sample data
Date | IP | Cc | Amount | Point |
6/18/14 22:45 | 1.1.1.173 | a5 | 7 | 2 |
6/18/14 22:52 | 1.1.1.173 | a5 | 15 | 2 |
6/18/14 23:07 | 1.1.1.173 | a5 | 16 | 2 |
6/18/14 23:23 | 1.1.1.173 | a5 | 15 | 2 |
6/18/14 23:38 | 1.1.1.173 | a5 | 4 | 2 |
6/18/14 23:42 | 1.1.1.164 | a5 | 1 | 1 |
6/18/14 23:45 | 1.1.1.173 | a5 | 8 | 2 |
6/18/14 23:53 | 1.1.1.173 | a5 | 15 | 2 |
6/19/14 0:08 | 1.1.1.173 | a5 | 15 | 2 |
6/19/14 0:23 | 1.1.1.173 | a5 | 12 | 2 |
6/19/14 0:37 | 1.1.1.7 | a5 | 3 | 3 |
6/19/14 0:40 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 0:55 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 1:10 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 1:25 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 1:40 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 1:55 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 2:10 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 2:25 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 2:40 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 2:55 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 3:10 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 3:25 | 1.1.1.7 | a5 | 15 | 3 |
6/19/14 3:40 | 1.1.1.7 | a5 | 15 | 3 |
I want to get the result something like this
IP | Cc | Amount | Point |
1.1.1.173 | a5 | 57 | 2 |
1.1.1.164 | a5 | 1 | 1 |
1.1.1.173 | a5 | 50 | 2 |
1.1.1.7 | a5 | 198 | 3 |
Thanks in Advance.