I have a table where I store information about every single time a page has been loaded. So I have these rows: id, ip, date. Now I want to SELECT the 5 most active IP addresses and get the total number of times they have loaded a page. So the result I get should look like this:
- IP - 193.211.187.1 Visits - 542
IP - 192.122.152.1 Visits-451
IP - 191.141.100.1 Visits-331
I hope you understand me correctly.