[sql] MySQL/SQL: Group by date only on a Datetime column