I'm working on a chart, x axis is Date, y axis is Count.
Now, I'm no SQL expert by far. I can write a query to get me the count for each date, but the requirements I have is to get the total count at each date.
For example, if the start date was two days ago, with zero entries, then yesterday we get 50, and today we get 25, the resultset would need to look like this:
I'm really not sure how to approach this query. If anyone has any suggestions, I'd appreciate it.
Now, I'm no SQL expert by far. I can write a query to get me the count for each date, but the requirements I have is to get the total count at each date.
For example, if the start date was two days ago, with zero entries, then yesterday we get 50, and today we get 25, the resultset would need to look like this:
Code:
Date | Count 2010-03-21 | 0 2010-03-22 | 50 2010-03-23 | 75
Comment