🤔 문제 분석
1) Query a list of CITY names from STATION for cities that have an even ID number.
2) Print the results in any order, but exclude duplicates from the answer.
💡 풀이
SELECT DISTINCT CITY
FROM STATION
WHERE ID % 2 = 0
'코딩테스트 > 해커랭크 SQL' 카테고리의 다른 글
[해커랭크/SQL] 10. Weather Observation Station 5 (0) | 2023.02.15 |
---|---|
[해커랭크/SQL] 9. Weather Observation Station 4 (0) | 2023.02.15 |
[해커랭크/SQL] 7. Japanese Cities' Attributes (0) | 2023.02.15 |
[해커랭크/SQL] 6. Weather Observation Station 1 (0) | 2022.12.11 |
[해커랭크/SQL] 5. Japanese Cities' Names (0) | 2022.12.11 |
댓글