Question
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:
My Answer
SELECT NAME
FROM CITY
WHERE COUNTRYCODE = 'JPN';
Result
출처 : https://www.hackerrank.com/challenges/japanese-cities-name/problem
Japanese Cities' Names | HackerRank
In this challenge, you will query a list of all the Japanese cities' names.
www.hackerrank.com
'SQL > HackerRank' 카테고리의 다른 글
[MySQL/HackerRank] Weather Observation Station 3 (0) | 2022.07.30 |
---|---|
[MySQL/HackerRank] Weather Observation Station 1 (0) | 2022.07.26 |
[MySQL/HackerRank] Japanese Cities' Attributes (0) | 2022.07.24 |
[MySQL/HackerRank] Select By ID (0) | 2022.07.11 |
[MySQL/HackerRank] Select All (0) | 2022.07.10 |