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
|
1039 Discussions
|
Please Login in order to post a comment
SELECT CITY.NAME FROM CITY JOIN COUNTRY ON CITY.CountryCode = COUNTRY.Code WHERE CONTINENT = "Africa";
SELECT CITY.NAME FROM CITY JOIN COUNTRY ON CITY.CountryCode = COUNTRY.Code WHERE CONTINENT = "Africa";
Sol 1: (with help of comma-separated join)
select city.name from city,country where country.continent='Africa' and city.countrycode=country.code;
Sol 2: (with JOIN)
Select city.name from city join country on city.countrycode=country.code where country.continent = 'Africa';
African Cities - SOLUTION
select c.name from city as c join country as cc on c.countrycode = cc.code where cc.continent = 'Africa'