본문 바로가기
서버/MYSQL

[MYSQL] HACKERRANK - Japanese Cities' Names

by HDobby 2022. 5. 31.

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:

이전 문제 : https://hdobby.tistory.com/7

 

이전 문제에서 SELECT에 특정 컬럼만 추가해주는 문제

COUNTRYCODE는 JPN

NAME만 출력

 

코드

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

 

728x90

댓글