Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de44d1d

Browse files
Update and rename asian-population.md to Population Census.md
1 parent d05ab22 commit de44d1d

File tree

2 files changed

+26
-18
lines changed

2 files changed

+26
-18
lines changed

‎SQL/Population Census.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# `Population Census`
3+
4+
https://www.hackerrank.com/challenges/asian-population/problem?isFullScreen=true
5+
6+
<br>
7+
8+
>Given the CITY and COUNTRY tables, query the sum of the populations of all cities where the CONTINENT is 'Asia'.
9+
>
10+
>Note: CITY.CountryCode and COUNTRY.Code are matching key columns.
11+
12+
<br>
13+
14+
# `Input Format`
15+
16+
The CITY and COUNTRY tables are described as follows:
17+
18+
![image](https://github.com/imvickykumar999/hackerrank-codechef-leetcode/assets/50515418/9b7e2233-6891-4c2d-908a-d923be3c6dc2)
19+
20+
![image](https://github.com/imvickykumar999/hackerrank-codechef-leetcode/assets/50515418/2a41e18f-1f59-4ae1-842f-56e619bf069b)
21+
22+
# `Solution`
23+
24+
```sql
25+
select sum(city.population) from city inner join country on city.countrycode = country.code where country.continent = 'Asia';
26+
```

‎SQL/asian-population.md

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /