문제
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 이름의 끝글자가 모음이 아닌 컬럼을 출력
- 중복 금지
출처
반응형
'Algorithm > MySQL' 카테고리의 다른 글
[해커랭크(HackerRank)] Revising Aggregations - Averages (MySQL) (0) | 2021.07.04 |
---|---|
[해커랭크(HackerRank)] Weather Observation Station 11 (MySQL) (0) | 2021.07.04 |
[해커랭크(HackerRank)] Weather Observation Station 9 (MySQL) (0) | 2021.07.04 |
[해커랭크(HackerRank)] Weather Observation Station 8 (MySQL) (0) | 2021.07.04 |
[해커랭크(HackerRank)] Weather Observation Station 7 (MySQL) (0) | 2021.07.04 |