I have a mysql table with a datetime field. Now, for statistics, I need to count how many entries are done in the weeks, 1st week, 2nd week, ...
Weeks are from monday to sunday.
For now, my idea is to calculate every monday in php and do a query. But 52 weeks do 52 querys.
Is there perhaps another solution just in mysql?
Thanks for your reply's