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
|
1513 Discussions
|
Please Login in order to post a comment
MySQL - select sum(city.population) from city inner join country on country.code = city.countrycode where country.continent = 'Asia';
For MySQL Platform
MYSQL SELECT SUM(CITY.POPULATION) FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE WHERE COUNTRY.CONTINENT = 'Asia';
MS SQL Server
SELECT SUM(city.population) FROM city INNER JOIN country ON CITY.CountryCode = COUNTRY.Code
WHERE country.continent = 'Asia'