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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -