Is it possible to make a simple query to count how many records I have in a determined period of time like a year, month, or day, having a TIMESTAMP field, like
TIMESTAMP
If you want to group by date in MySQL then use the code below:
SELECT COUNT(id) FROM stats GROUP BY DAYOFMONTH(record_date)
Hope this saves some time for the ones who are going to find this thread.