Average Population of Each Continent

Sort by

recency

|

1685 Discussions

|

  • + 0 comments

    select cn.Continent,floor(avg(c.population)) from city c join country cn on c.countrycode = cn.code group by cn.Continent;

  • + 0 comments
    select
        cnt.continent,
        round(avg(ct.population),0)
    from
        city ct
    join country cnt on cnt.code = ct.countrycode
    group by cnt.continent;
    
  • + 0 comments

    ms sql server :

    select co.continent, floor(avg(ci.population)) from city ci join country co on ci.countrycode = co.code group by co.continent

  • + 0 comments

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

  • + 0 comments

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