본문 바로가기
CODING TEST/SQL : HackerRank

[MySQL] Japanese Cities' Names

by 주 녕 2021. 3. 29.
반응형

 SQL  >  Basic Select  > Japanese Cities' Names 

 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:

 

 My Answer 

SELECT NAME
FROM CITY
WHERE COUNTRYCODE = 'JPN'

 

 

반응형

댓글