The year is divided into 12 months. We can break up a month in four weeks.
In MySQL, how to return the week of the month? (Example: first week: 2 entries, second week: 5 entries, third week: 3 entries, fourth week: 8 entries)
Using Week and WeekOfYear does not give the desired result, because functions return the week number of YEAR, not the month.
source share