Population Census sql – Hacker Rank Solution

Population Census sql - Hacker Rank Solution
Population Census sql – Hacker Rank Solution

Problem

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

Note: CITY.CountryCode and COUNTRY.Code are matching key columns.

Input Format

The CITY and COUNTRY tables are described as follows: 1449729804 f21d187d0f CITY

1449769013 e54ce90480 Country


Population Census sql – Hacker Rank Solution

select sum(City.Population) from City INNER JOIN Country
on City.CountryCode = Country.Code Where Country.Continent = 'Asia';

Disclaimer: The above Problem (Population Census) generated by Hackerrank but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes. Authority if any of the queries regarding this post or website fill the following contact form thank you.

Leave a Comment