I want to fetch the data from Table based on date but in an incremental way.
Suppose I have data like this which is grouped by date
| DATE       | Count |
| 2015-06-23 | 10    |
| 2015-06-24 | 8     |
| 2015-06-25 | 6     |
| 2015-06-26 | 3     |
| 2015-06-27 | 2     |
| 2015-06-29 | 2     |
| 2015-06-30 | 3     |
| 2015-07-01 | 1     |
| 2015-07-02 | 3     |
| 2015-07-03 | 4     |
So the result should come like this
| DATE       | Count| Sum|
| 2015-06-23 | 10   | 10 |
| 2015-06-24 | 8    | 18 |
| 2015-06-25 | 6    | 24 |
| 2015-06-26 | 3    | 27 |
| 2015-06-27 | 2    | 29 |
| 2015-06-29 | 2    | 31 |
| 2015-06-30 | 3    | 34 |
| 2015-07-01 | 1    | 35 |
| 2015-07-02 | 3    | 38 |
| 2015-07-03 | 4    | 42 |