[HackerRank|MySQL] Japanese Cities' Attributes / Names

히끼·2020년 8월 21일
0

HackerRank

목록 보기
2/13

Japanese Cities' Attributes

Problem

Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN.

Solution

SELECT *
FROM CITY
WHERE COUNTRYCODE = 'JPN'

Japanese Cities' Names

Problem

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

Solution

SELECT NAME
FROM CITY
WHERE COUNTRYCODE = 'JPN'

0개의 댓글