2주 내내 나를 괴롭혔던 조인 문제들.
이론을 아는 것과 실기로 하는 건 확실히 다르지만, 그래도 이론을 알면 어느 정도 풀리는 건 확실하다.
이 문제를 풀면서 느꼈다!
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
SELECT CITY.NAME
FROM CITY
JOIN COUNTRY
ON CITY.COUNTRYCODE = COUNTRY.CODE
WHERE COUNTRY.CONTINENT = 'Africa';