혜온의 이것저것

[HackerRank] Weather Observation Station 3 (MySQL) 본문

Data Analysis/SQL

[HackerRank] Weather Observation Station 3 (MySQL)

혜온 :) 2022. 8. 3. 11:21

https://www.hackerrank.com/challenges/weather-observation-station-3/problem?isFullScreen=true 

 

Weather Observation Station 3 | HackerRank

Query a list of unique CITY names with even ID numbers.

www.hackerrank.com

 

문제

Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer.
The STATION table is described as follows:

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

 

풀이
select distinct city from station
where id%2=0

 

 

Comments