Average Population of Each Continent

Sort by

recency

|

1794 Discussions

|

  • + 0 comments
    select COUNTRY.Continent, floor(avg(CITY.population)) from CITY join COUNTRY
      on CITY.CountryCode = COUNTRY.Code
      group by 1;
    
  • + 0 comments
    SELECT CO.Continent, FLOOR(AVG(C.Population))
    FROM CITY C
    JOIN COUNTRY CO
        ON C.CountryCode = CO.Code
    GROUP BY CO.Continent;
    
  • + 0 comments

    SELECT T1.CONTINENT , FLOOR(AVG(T2.POPULATION)) AS AVERAGE_POPULATION FROM COUNTRY AS T1 JOIN CITY AS T2 ON T1.CODE = T2.COUNTRYCODE GROUP BY T1.CONTINENT

  • + 0 comments
    SELECT COUNTRY.CONTINENT, FLOOR(AVG(CITY.POPULATION))
    FROM COUNTRY
    JOIN CITY
    ON CITY.CountryCode = COUNTRY.Code
    GROUP BY COUNTRY.CONTINENT
    
  • + 0 comments

    MySQL:

    SELECT  
        coun.continent,
        FLOOR(AVG(city.population)) AS avg_population
    FROM country coun
    INNER JOIN city ON coun.code = city.countrycode
    GROUP BY coun.continent;