[MySQL/HackerRank] Weather Observation Station 3
·
SQL/HackerRank
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:* even : 짝수 (2로 나누었을 때 나머지가 0인 수)* odd : 홀수 (2로 나누었을 때 나머지가 1인 수)where LAT_N is the northern latitude and LONG_W is the western longitude.SELECT DISTINCT CITYFROM STATIONWHERE MOD(ID, 2) = 0; 나머지 함..