HackerRank MySQL - Asian Population




Given the CITY and COUNTRY tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'.



  1. SELECT SUM(CITY.POPULATION)
  2. FROM CITY
  3. JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE
  4. WHERE COUNTRY.CONTINENT = 'Asia';




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube