알고리즘/HackerRank
[HackerRank] African cities 오라클 풀이
mndev
2024. 1. 31. 15:59
문제링크
African Cities | HackerRank
Query the names of all cities on the continent 'Africa'.
www.hackerrank.com
풀이
1. city와 country의 코드를 기준으로 조인
2. continent가 Africa인 도시의 이름을 조회
코드
select a.name
from city a join country o
on a.countrycode = o.code
where o.continent = 'Africa';