Average Population of Each Continent

  • + 0 comments

    Gah daymmn, why should we use floor?

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

    Thought this is already correct