기록하는 습관

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

SQL

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

Avalla 2023. 8. 17. 23:35

Problem

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

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

The CITY table is described as follows:

Solution

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