GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
How to retrieve population sums similar to /countries/?  XML
Forum Index -> General
Author Message
sparkletts



Joined: 05/08/2014 22:35:18
Messages: 1
Offline

I have allCountries.txt imported into mysql and want to do some analysis on population sums on certain regions.

Firstly, I tried to figure out "world population" by performing:
select sum(population)
from allCountries_table

Yet this result is extremely off from the realistic result.

I then tried to find sum of population per country doing:

select country_code, sum(population)
from allCountries_table
group by country_code

and yet, these numbers are far off from http://www.geonames.org/countries/

What fields in the query am I missing so that my results can match the populations listed on the link above?
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team