Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
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 29 30 31
Archives
Today
Total
관리 메뉴

forest_moon

[hackerrank, SQL]African Cities 본문

알고리즘

[hackerrank, SQL]African Cities

rokga 2023. 2. 8. 13:33

아프리카의 모든 도시 목록

 

 

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: 

 

SELECT
    city.name
FROM
    city
JOIN country ON
    country.code = city.countrycode
AND
    country.continent =  "Africa"
    ;

 

'알고리즘' 카테고리의 다른 글

특정 문자 제거하기  (0) 2023.02.09
[hackerrank, SQL]The Report  (0) 2023.02.08
[hackerrank, SQL]Average Population of Each Continent  (0) 2023.02.07
짝수 홀수 개수  (0) 2023.02.05
직각삼각형 출력하기  (0) 2023.02.05