코딩공부

[HackerRank] SQL / Basic Join / Easy / African Cities

geraedo 2024. 12. 18. 21:11

문제:

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:

 

해결 방법 :

전체를 조인해도 되지만, 필요한 컬럼만 들고와서 실행했다.