[hackerrank] Prepare > SQL > Basic Select > Weather Observation Station 3
[문제]
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:
[MYSQL]
[ORCALE]
select distinct(city)
from station
where mod(id,2) = 0
order by city;
반응형
'HackerRank > SQL' 카테고리의 다른 글
[hackerrank] Weather Observation Station 5 (0) | 2022.08.08 |
---|---|
[hackerrank] Weather Observation Station 4 (0) | 2022.08.08 |
[hackerrank] Weather Observation Station 1 (0) | 2022.08.08 |
[hackerrank] Japanese Cities' Names (0) | 2022.08.08 |
[hackerrank] Japanese Cities' Attributes (0) | 2022.08.08 |