[hackerrank] Prepare > SQL > Aggregation > African Cities
[문제]
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:
[MYSQL]
[ORCALE]
select a.name
from city a inner join country b on (a.countrycode = b.code)
where continent = 'Africa';
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] Population Census (0) | 2022.09.06 |
---|---|
[hackerrank] Weather Observation Station 19 (0) | 2022.09.06 |
[hackerrank] Weather Observation Station 18 (0) | 2022.09.06 |
[hackerrank] Weather Observation Station 17 (0) | 2022.09.06 |
[hackerrank] Weather Observation Station 16 (0) | 2022.09.06 |