[HackerRank] Weather Observation Station 3

2021. 1. 20. 20:43데이터베이스/SQL

728x90
반응형

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:


SELECT DISTINCT CITY FROM STATION WHERE ID % 2 = 0;