728x90
반응형
https://www.hackerrank.com/challenges/weather-observation-station-3/problem?isFullScreen=true
문제
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.
Code
SELECT DISTINCT CITY
FROM STATION
WHERE MOD(ID, 2) = 0;
728x90
반응형
'SQL > MySQL' 카테고리의 다른 글
[MySQL/HackerRank] Weather Observation Station 6 (0) | 2023.08.12 |
---|---|
[MySQL/HackerRank] Weather Observation Station 4 (0) | 2023.08.12 |
[MySQL/HackerRank] Weather Observation Station 1 (0) | 2023.08.12 |
[MySQL/HackerRank] Japanese Cities' Names (0) | 2023.08.12 |
[MySQL/HackerRank] Japanese Cities' Attributes (0) | 2023.08.12 |