[SQL] African Cities

순동·2022년 4월 19일
0

✅ 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';

0개의 댓글

관련 채용 정보

Powered by GraphCDN, the GraphQL CDN