Average Population of Each Continent

  • + 11 comments

    Here is Oracle solution from my HackerrankPractice repository:

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

    Feel free to ask if you have any questions :)