African Cities SQL Hacker Rank Solution

Hello coders, In this post, you will learn how to solve the African Cities SQL Hacker Rank Solution. This problem is a part of the SQL Hacker Rank series.

African Cities SQL Hacker Rank Solution
African Cities SQL Hacker Rank Solution

African Cities SQL Hacker Rank Solution

Problem

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

The CITY and COUNTRY tables are described as follows:

 African Cities SQL Hacker Rank Solution

African Cities SQL Hacker Rank Solution

African Cities SQL Hacker Rank Solution

SELECT i.NAME FROM CITY AS i JOIN COUNTRY AS o
ON i.COUNTRYCODE=o.CODE WHERE o.CONTINENT='Africa';

Disclaimer: The above Problem (African Cities) generated by Hackerrank but the Solution is Provided by Chase2Learn. This tutorial is only for Educational and Learning purposes.

Sharing Is Caring