I have several entries saved as follows:
ID | StartDate | Enddate | Amount
I do now want to query for every single day in this period to part the total amount between those dates.
For example
1 | 2012-01-01 | 2012-01-05 | 10
2 | 2012-01-04 | 2012-01-05 | 20
should become
2012-01-01 | 2
2012-01-02 | 2
2012-01-03 | 2
2012-01-04 | 12
2012-01-05 | 12
Is this possible? I cannot imagine how toconclude from the period to the single day values. Thanks in advance!