It is very easy to count all rows added lets say in june 2011, simply by using
GROUP BY YEAR(record_date), MONTH(record_date)
But I wonder how to do that while counting the number of all rows in the table at given date – that would require also counting those added before.
for example adding 5 rows per month:
i would like to result look like this: 5, 10, 15 and so on during the month.
1 Answer