Lim Seunghyun Space

[HackerRank] Japanese Cities' Attributes 본문

SQL/SQL 문제

[HackerRank] Japanese Cities' Attributes

Lim Seung Hyun 2021. 11. 19. 10:12

문제 : https://www.hackerrank.com/challenges/japanese-cities-attributes/problem?isFullScreen=true 

 

Japanese Cities' Attributes | HackerRank

Query the attributes of all the cities in Japan.

www.hackerrank.com

 

문제 해설

  • CITY 테이블에서 Japanese City만 찾기 위해 COUNTRYCODE가 JPN인 데이터를 조회
  • OUTPUT 조건은 모든 칼럼에 대해 조회

 

풀이 (MySQL)

SELECT *
FROM CITY
WHERE COUNTRYCODE = "JPN";
728x90

'SQL > SQL 문제' 카테고리의 다른 글

[HackerRank] Weather Observation Station 1  (0) 2021.11.19
[HackerRank] Japanese Cities' Names  (0) 2021.11.19
[HackerRank] Select By ID  (0) 2021.11.19
[HackerRank] Select All  (0) 2021.11.19
[HackerRank] Revising the Select Query II  (0) 2021.11.19