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

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -