일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- boj
- Stack
- dl
- Numpy
- 파이썬
- FullyConnectedLayer
- SQL
- backward
- DeepLearning
- algorithm
- hash
- stak
- 딥러닝
- kakao
- skip-gram
- Python
- Heap
- Programmers
- 신경망
- 프로그래머스
- sort
- MySQL
- CBOW
- PPMI
- select
- Word2vec
- 자연어처리
- que
- Sigmoid
- affine
Archives
- Today
- Total
혜온의 이것저것
[HackerRank] African Cities (MySQL) 본문
https://www.hackerrank.com/challenges/african-cities/problem?isFullScreen=true
African Cities | HackerRank
Query the names of all cities on the continent 'Africa'.
www.hackerrank.com
문제
Given the CITY and COUNTRY tables, query the names of all cities where the CONTINENT is 'Africa'.
Note: CITY.CountryCode and COUNTRY.Code are matching key columns.
Input Format
The CITY and COUNTRY tables are described as follows:
![](https://blog.kakaocdn.net/dn/bC8QTq/btrKQRKYZSs/ltKGnoqSPBZZSUGbjChNn0/img.jpg)
![](https://blog.kakaocdn.net/dn/siyV8/btrKMovXzKY/Bi8afStak3kBR9ZKfUSC9k/img.jpg)
풀이
select c1.name
from city c1, country c2
where c1.countrycode = c2.code and c2.continent = 'Africa'
'Data Analysis > SQL' 카테고리의 다른 글
[HackerRank] The Report (MySQL) (0) | 2022.08.29 |
---|---|
[HackerRank] Average Population of Each Continent (MySQL) (0) | 2022.08.29 |
[HackerRank] Population Census (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 |
Comments