We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Basic Join
- Population Census
- Discussions
Population Census
Population Census
Sort by
recency
|
1425 Discussions
|
Please Login in order to post a comment
SELECT SUM(CITY.POPULATION) FROM CITY WHERE CITY.COUNTRYCODE IN (SELECT COUNTRY.CODE FROM COUNTRY WHERE COUNTRY.CONTINENT = 'Asia')
solution select sum(city.population) from city JOIN country on city.countrycode = country.code where continent = 'ASIA'
SOLUTION SELECT SUM(CITY.POPULATION) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE=COUNTRY.CODE WHERE COUNTRY.CONTINENT="ASIA";
SELECT SUM(CITY.POPULATION) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE WHERE COUNTRY.CONTINENT = 'ASIA';
select sum(c.population) from city c inner join country cnty on c.countrycode=cnty.code where cnty.continent='Asia';