If I have a MySQL query to aggregate totals by week, e.g.:
select sum(keyword1), sum(keyword2), sum(keyword3), dateTime
from myTable
group by week(dateTime)
order by dateTime asc
I find that the weeks appear to begin on a Sunday.
Can this be changed to a Monday?
Column dateTime is in MySQL Timestamp format 2011-09-26 12:34:32.
So, http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_default_week_format