기록하는 습관

[SQL] (해커랭크) Japanese Cities' Names 본문

SQL

[SQL] (해커랭크) Japanese Cities' Names

Avalla 2023. 8. 18. 18:38

Problem

HackerRank > Prepare > SQL > Basic Select > Japanese Cities' Names

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:

Solution

더보기
SELECT NAME
FROM CITY
WHERE 1=1
and COUNTRYCODE = 'JPN'
;