Average Population of Each Continent

  • + 0 comments

    ms SQL Server

    SELECT
        COUNTRY.CONTINENT,
        ROUND(AVG(CITY.POPULATION), 0)
    FROM CITY
    JOIN COUNTRY
        ON CITY.CountryCode = COUNTRY.Code
    GROUP BY COUNTRY.CONTINENT;