I have a table that i use to log IP Addr's and dates of people looking at my site, I want to count the entries for each dates so I can make a graph, any ideas?
I would use group by rather than distinct.
Something like this:
select t_date, count(*) from my_table group by t_date;
Or perhaps this:
select t_ip, t_date, count(*) from my_table group by t_ip, t_date;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.