You are viewing a single comment's thread. Return to all comments →
** With using Join **
select sum(city.population) from city JOIN country on country.code = city.countrycode where country.continent='Asia';
** Without using Join **
select sum(city.population) from city, country where country.continent='Asia' and city.countrycode = country.code;
Seems like cookies are disabled on this browser, please enable them to open this website
Population Census
You are viewing a single comment's thread. Return to all comments →
** With using Join **
select sum(city.population) from city JOIN country on country.code = city.countrycode where country.continent='Asia';
** Without using Join **
select sum(city.population) from city, country where country.continent='Asia' and city.countrycode = country.code;