Having a table with a colum like: mydate DATETIME ...
I have a query such as:
SELECT SUM(foo), mydate FROM a_table GROUP BY a_table.mydate;
This will group by the full datetime, including hours and minutes. I wish to make the group by, only by the date YYYY/MM/DD not by the YYYY/MM/DD/HH/mm.
Anyone know how to do this? I can still do it (as i am atm), dynamically in my code, but I'm cleaning trash code and this can be made through the SQL i just can't find out how :(