OkBublewrap

Weather Observation Station 3 본문

개발/SQL

Weather Observation Station 3

옥뽁뽁 2023. 2. 22. 00:17

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 mod(id,2) = 0

짝수인 ID number추출, 중복된 값은 제외하라

'개발 > SQL' 카테고리의 다른 글

Weather Observation Station 9  (0) 2023.02.22
Weather Observation Station 8  (0) 2023.02.22
Weaher Observation Station 7  (0) 2023.02.22
Weather Observation Station 5  (0) 2023.02.22
Weather Observation Station 4  (0) 2023.02.22