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
|
1030 Discussions
|
Please Login in order to post a comment
Select CITY.NAME FROM CITY JOIN COUNTRY ON CITY.COUNTRYCODE = COUNTRY.CODE where COUNTRY.CONTINENT = 'Africa' ORDER BY COUNTRY.NAME, CITY.NAME;
This worked for me , i kept displaying the country.name too . so i errored a lot
SELECT CI.NAME FROM CITY CI INNER JOIN COUNTRY CO ON CI.CountryCode = CO.Code WHERE CO.CONTINENT = 'Africa';
select City.name from City Join Country on CITY.CountryCode = COUNTRY.Code where Country.Continent = 'Africa';
SELECT (CITY.NAME) FROM CITY INNER JOIN COUNTRY ON CITY.CountryCode = COUNTRY.Code WHERE CONTINENT="AFRICA";
MYSQL:-
select ci.name from city as ci inner join country as co on ci.CountryCode = co.Code where continent = 'Africa'