mysql count rows and grop them by month
Posted
by
user2661296
on Stack Overflow
See other posts from Stack Overflow
or by user2661296
Published on 2014-08-21T10:13:15Z
Indexed on
2014/08/21
10:20 UTC
Read the original article
Hit count: 217
I have a table called cc_calls and there I have many call records I want to count them and group them in months I have a timestamp called starttime and I can use that row to extract the month, also limit the count for 12 months
the results should be like:
Month Count
January 768768
February 876786
March 987979
April 765765
May 898797
June 876876
July 786575
August 765765
September 689787
October 765879
November 897989
December 876876
Can anyone guide me or show me the mysql query that I need to get this result.
© Stack Overflow or respective owner