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
|
1483 Discussions
|
Please Login in order to post a comment
select sum(population) from city where countrycode in ( select code from country where continent='asia' );
select SUM(City.Population) from City Join Country on CITY.CountryCode = COUNTRY.Code where Country.Continent = 'Asia';
** MYSQL:-**
select sum(city.population) from city inner join country on CITY.CountryCode = COUNTRY.Code where CONTINENT='ASIA'
MYSQL:
SELECT SUM(CI.Population) FROM City CI JOIN Country CO ON CI.CountryCode = CO.Code WHERE CO.Continent = 'Asia';
FOR MYSQL select SUM(CITY.POPULATION) FROM CITY INNER JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE AND COUNTRY.CONTINENT='Asia'