I would like to get the number of rows in a table for each date. Right now I am doing:
SELECT SUM(COUNT(*)) FROM videos_videoview GROUP BY date
What would be the correct syntax for the above?
In addition, the date is stored not as a date, but as datetime (2012-01-25 10:26:20). How would I GROUP BY
date here, ignoring the time?