[HackerRank] Japanese Cities' Attributes

이정진·2021년 12월 1일
0

SQL

목록 보기
13/23
post-thumbnail

Japanese Cities' Attributes

난이도 구분 : Easy

문제

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

The CITY table is described as follows:

문제 풀이

COUNTRYCODE가 JPN인 경우의 모든 Field를 출력하는 문제로 해당 조건을 where문에서 작성하면 된다.

SQL

SELECT ID, NAME, COUNTRYCODE, DISTRICT, POPULATION
FROM CITY
WHERE COUNTRYCODE = 'JPN'

0개의 댓글