We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Basic Join
- African Cities
- Discussions
African Cities
African Cities
Sort by
recency
|
987 Discussions
|
Please Login in order to post a comment
SELECT CITY.NAME AS NAME_CITY FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE WHERE COUNTRY.CONTINENT = 'Africa';
select ci.name from city ci inner join country co on ci.countrycode = co.code where co.continent = 'Africa'
For MySQL
SELECT CITY.NAME FROM CITY WHERE CITY.COUNTRYCODE IN (SELECT COUNTRY.CODE FROM COUNTRY WHERE COUNTRY.CONTINENT = 'Africa')