SQL/Hacker Rank
[Easy] Weather Observation Station 3
소금깨
2022. 10. 24. 00:53
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.
문제 풀이
SELECT DISTINCT city
FROM STATION
WHERE (ID % 2 ) = 0