Open joocer opened 1 month ago
and
SELECT URL, COUNT(*) AS PageViews FROM hits WHERE CounterID = 62 AND EventDate >= '2013-07-01' AND EventDate <= '2013-07-31' AND DontCountHits = 0 AND IsRefresh = 0 AND URL <> '' GROUP BY URL ORDER BY PageViews DESC LIMIT 10;
Functions which work on dates and timestamps generally don't work on Linux Epoch timestamps
extract(minute FROM EventTime)