Average Population of Each Continent

  • + 0 comments

    SELECT b1.continent, floor(avg(a1.POPULATION)) FROM CITY a1 right JOIN COUNTRY b1 ON a1.COUNTRYCODE = b1.CODE where b1.continent != 'null' and a1.POPULATION != 'null' GROUP BY b1.CONTINENT

    using right join