문제
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;
'algorithm' 카테고리의 다른 글
[HackerRank] MySQL - Weather Observation Station 4 (0) | 2022.08.17 |
---|---|
[programmers] MySQL - Lv.2 동물 수 구하기 (sum, max, min) (0) | 2022.08.17 |
[programmers] MySQL - Lv.2 이름에 el이 들어가는 동물 찾기 (string, date) (0) | 2022.08.12 |
[HackerRank] MySQL - Weather Observation Station 1 (0) | 2022.08.11 |
[programmers] MySQL - Lv.2 동명 동물 수 찾기 (group by) (0) | 2022.08.11 |