I want to count all new students in a given month from ten years ago to today and put that information into a table, separated month by month.
I have a mysql users table with the date the user enrolled in a timestamp format.
So, I've got something like this: (the format is dd-mm-yyyy)
Unix --------------- readable date
1528743811 --------- 11-6-2018
1528740914 --------- 11-6-2018
1528740347 --------- 11-6-2018
1528733661 --------- 11-6-2018
1528676301 --------- 10-5-2018
1528657978 --------- 10-5-2018
1528508065 --------- 8-5-2018
1528492266 --------- 8-4-2018
etc..
How may I do the counting? (I would appreaciate even an idea of where to start, or how to actually formulate the problem, even in seudocode).
I expect something like this:
4-2018 --------- 1
5-2018 --------- 3
6-2018 --------- 4
Please, if you think that the question syntaxis can be improved let me know,thanks! (english isn't my primary language).
Also, If you want to downvote, or vote the question to be closed or deleted, please leave me a comment about why, so I can improve my questions. Thanks.