You are viewing a single comment's thread. Return to all comments →
Why wouldn't using LEFT JOIN work in this case?
Select CTR.CONTINENT, FLOOR(AVG(C.POPULATION)) From CITY C LEFT JOIN COUNTRY CTR on C.COUNTRYCODE = CTR.CODE GROUP BY CTR.CONTINENT
Seems like cookies are disabled on this browser, please enable them to open this website
Average Population of Each Continent
You are viewing a single comment's thread. Return to all comments →
Why wouldn't using LEFT JOIN work in this case?
Select CTR.CONTINENT, FLOOR(AVG(C.POPULATION)) From CITY C LEFT JOIN COUNTRY CTR on C.COUNTRYCODE = CTR.CODE GROUP BY CTR.CONTINENT