Average Population of Each Continent

Sort by

recency

|

1817 Discussions

|

  • + 0 comments
    SELECT country.continent, FLOOR(AVG(city.population))
    FROM country
    JOIN city ON city.countrycode = country.code
    GROUP BY continent;
    
  • + 0 comments
    SELECT co.Continent, FLOOR(AVG(ci.population)) 
    FROM city as ci join country as co on 
    ci.countryCode = co.code GROUP BY co.Continent
    
  • + 0 comments

    MYSQL -

    SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) FROM COUNTRY JOIN CITY ON CITY.COUNTRYCODE = COUNTRY.CODE GROUP BY COUNTRY.CONTINENT;

  • + 0 comments

    select a.CONTINENT, floor(avg(b.POPULATION)) from COUNTRY as a INNER JOIN CITY as b on a.CODE = b.COUNTRYCODE group by CONTINENT;

  • + 0 comments

    SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION)) AS AVG_CITY_POPULATION FROM COUNTRY INNER JOIN CITY ON COUNTRY.CODE = CITY.COUNTRYCODE GROUP BY CONTINENT;