[SQL] African Cities

1284 단어 hackerrankhackerrank

✅ African Cities


📝 문제

Given the CITY and OUNTRY 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 A.NAME
FROM CITY AS A INNER JOIN COUNTRY AS B
    ON A.COUNTRYCODE = B.CODE 
WHERE CONTINENT = 'Africa';

좋은 웹페이지 즐겨찾기