Hi,
I have the following setup:
A MySQL database with a table 'transactions
', containing (among other things) transaction_id
, price
, time
and uid
.
I need to create a chart (I'm using flot) that will show a user his/her's sales volume (not price).
I need an indicator to move the y axis of the chart.
I was thinking of aggregating the total number of sales per week/month. My question is twofold:
- Does anyone have a better idea/method of doing this? and,
- how can I aggregate the total number of sales per week/month using MySQL/PHP?