This SQL statement
SELECT `ip`, `when` FROM `metrics` WHERE `vidID` = '1' GROUP BY DATE('when')
returns one result, even though multiple are present in the table with different dates. I've tried using DATE_FORMAT
as well. Am I doing something stupid?
When
is a timestamp column with full timestamp, including hours, minutes and seconds. I'm trying to just group by results by day/month/year.