Greetings. Faced a problem, there is a table with transactions, and in it a column with timestump. It is necessary to sum up the account balance on each day in a certain time interval.
As an option, consider the execution of the request for each of the days, typing the remainder by summing up all previous transactions. But I do not think that this method is correct. What solution can you tell?
Data demo: http://sqlfiddle.com/#!9/821821