728x90
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
inner join 문제
city 테이블과 country 이블을
각각 a.countrycode = b.code 로 두는 문제
select a.name
from city A
inner join country B
on A.countrycode = B.code
where continent = 'Africa'
728x90
'SQL' 카테고리의 다른 글
[해커랭크] Population Census (0) | 2023.07.18 |
---|---|
[해커랭크] Average Population of Each Continent (0) | 2023.07.17 |
[해커랭크] Revising Aggregations - The Count Function (0) | 2023.07.17 |
[해커랭크] Average Population (0) | 2023.07.17 |
[해커랭크] Revising Aggregations - Averages (0) | 2023.07.16 |