I have a problem and I have no idea how to do that. Please help me with an idea. So I have a table : test
, with columns :
id begin end
1 2016-06-06 15:30:30 2016-06-08 16:40:40
Now I need to get the count of id by week The result need to be : For example if this week is the week number 6 I need to get :
Week count
4 10
5 10
6 12
7 19
8 27
Thx four you help
test
for the weeks4,5,6,7,8