관리 메뉴

오늘도 배운다

Weather Observation Station 3 / HackerRank, SQL, MySQL 본문

코딩테스트연습(SQL)

Weather Observation Station 3 / HackerRank, SQL, MySQL

LearnerToRunner 2022. 11. 30. 09:59

문제

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:

 

 

제출답안(MySQL)

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

 

 

문제 바로가기(MySQL) 

 

728x90
Comments