Table users : id (int) status (int) regdate (datetime)
I want to get the results in order of regdate, with count(id) 's and group by status.
For example :
Date Count(status = 3) Count(status = 4) Count(status = 5)
2014-02-24 2 5 8 2014-02-25 2 5 8
We should have get the results in only a line per day.
Thanks too much in advance.