SQL/HackerRank

[HackerRank] Weather Observation Station 3

햄습햄 2022. 1. 19. 15:16

문제 설명 (Difficulty: Easy)

 

Query a list of CITY names from STATION for cities that have an even ID number.

(ID 번호가 짝수인 도시에 대해 STATION 테이블에서 CITY 이름 목록을 쿼리하세요.)

 

Print the results in any order, but exclude duplicates from the answer.

(결과를 순서에 상관 없이 출력하되, 답변에서 중복을 제외하세요.)


The STATION table is described as follows:

(STATION 테이블은 다음과 같이 설명됩니다.)

where LAT_N is the northern latitude and LONG_W is the western longitude.

(여기서 LAT_N은 북쪽 위도이고, LONG_W는 서쪽 경도입니다.)

 


풀이 과정 (MySQL)