I have a table in MySQL and am trying to group it by week (may be week of the year)
Select count(id),month(data_tarefa), year(data_tarefa) from tarefas group by mes, ano
So it works cool, but I would need to group by week, I researched and did not find a function to return the week of the year, if anyone has any tips thanks.