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