Algorithm/MySQL
[해커랭크(HackerRank)] Weather Observation Station 10 (MySQL)
yujin.me
2021. 7. 4. 23:10
문제
Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates.
Input Format
The STATION table is described as follows:
코드
SELECT distinct city
FROM Station
WHERE substring(city, -1) NOT IN ('a','e','i','o','u')
- Station 테이블에서 city 이름의 끝글자가 모음이 아닌 컬럼을 출력
- 중복 금지
출처
반응형