일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 파이썬
- SQL
- Programmers
- Word2vec
- sort
- MySQL
- DeepLearning
- 프로그래머스
- Numpy
- boj
- FullyConnectedLayer
- skip-gram
- Stack
- algorithm
- hash
- Heap
- 딥러닝
- PPMI
- 자연어처리
- affine
- que
- select
- Python
- backward
- dl
- Sigmoid
- kakao
- 신경망
- stak
- CBOW
Archives
- Today
- Total
혜온의 이것저것
[HackerRank] Population Census (MySQL) 본문
https://www.hackerrank.com/challenges/asian-population/problem?isFullScreen=true
문제
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:
풀이
select sum(c1.population)
from city c1, country c2
where c1.countrycode = c2.code and c2.continent='Asia'
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] Average Population of Each Continent (MySQL) (0) | 2022.08.29 |
---|---|
[HackerRank] African Cities (MySQL) (0) | 2022.08.29 |
[HackerRank] Weather Observation Station 20 (MySQL) (0) | 2022.08.22 |
[HackerRank] Weather Observation Station 19 (MySQL) (0) | 2022.08.22 |
[HackerRank] Weather Observation Station 18 (MySQL) (0) | 2022.08.22 |
Comments