[HackerRank] Weather Observation Station 3

2022. 6. 7. 23:24SQL

내 쿼리 

SELECT DISTINCT city
FROM station
WHERE MOD(id,2)=0

 

짝수 구현시 MOD 함수 이용하기 

'SQL' 카테고리의 다른 글

[LeetCode] 197. Rising Temperature  (0) 2022.06.09
[HackerRank] Weather Observation Station 5  (0) 2022.06.08
[LeetCode] 178. Rank Scores  (0) 2022.06.07
[LeetCode] 184. Department Highest Salary  (0) 2022.06.07
SQL - 심화 2  (0) 2022.03.20