I’m looking for a way to save daily data in my db. For example, there’s a possibility to make a donation on my site (like kickstarter or sth). The cost of every donation is stored in a money attribute (donation.money). I would like to make a daily statistic of donations like this (sums up every donation in one day): 3rd of July – 50$, 5th of July – 100$.
Could someone tell me how to do it? Do I need to make another attribute to sort it by days?
I’d appreciate any help.