mysql - SQL Limit + count -


i'm tracking visitors of site using table:

visitors table

in admin panel, have overview of countries visited site, came from, ..., because on 20+ different countries have visited site already, chart looks this:

messed chart

to solve this, want select top 5 countries, have no clue on how this.

i've tried using limit & count no luck.

maybe shoule use order by. exam:select * visitors order day limit 5; hope you


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -