Japanese Cities’ Names in SQL | HackerRank Solution

Hello coders, today we are going to solve Japanese Cities’ Names HackerRank Solution in SQL.

Japanese Cities' Names in SQL

Problem

Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN.
The CITY table is described as follows:

CITY

FieldType
IDNUMBER
NAMEVARCHAR2(17)
COUNTRYCODEVARCHAR2(3)
DISTRICTVARCHAR2(20)
POPULATIONNUMBER

Solution – Japanese Cities’ Names in SQL

SELECT NAME FROM CITY WHERE COUNTRYCODE = "JPN";

Description: The above Problem (Japanese Cities’ Names) is generated by Hacker Rank but the Solution is Provided by CodingBroz. This tutorial is only for Educational and Learning Purpose.

1 thought on “Japanese Cities’ Names in SQL | HackerRank Solution”

Leave a Comment

Your email address will not be published. Required fields are marked *