|
Hi guys,
I have a timestamp field like: 2011-01-03 18:29:44
I want to get how many rows for each date,
ie:
select count(*) from table group by time;
However this obviously returns a lot of rows ( as its counting the hours and miniutes )
How can i get it to just group by 2011-01-03 rather than 2011-01-03 18:29:44
Ie: group by yyyy-mm-dd rather than yyyy-mm-dd hh:mm:ss
Google isnt being too helpful.
Thanks
G
|