I have the following structure
ID DATE(DATETIME) TID 1 2012-04-01 23:23:23 8882
I\'m trying to count the amount of rows a
Try this query:
SELECT COUNT(id), DAY(dat), MONTH(dat), YEAR(dat) FROM table WHERE TID=8882 GROUP BY YEAR(dat), MONTH(dat), DAY(dat);