I'm trying to perform a query between two dates that returns me the number of the week and counts progressively the week.
As an example:
Itlookslikethis:
SELECTROUND((DATEDIFF(max(atendido_em_data),min(atendido_em_data)))/7)assemana,min(atendido_em_data)asmin,max(atendido_em_data)asmaxfromger_posicao;
Idonotunderstandwhythebankkeepsreturninglikethis: