728x90
728x90
Weather Observation Station 12 | HackerRank
Query an alphabetically ordered list of CITY names not starting and ending with vowels.
www.hackerrank.com
Problem
Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates.
-> 도시 이름의 시작과 끝이 모음이 포함하지 않는 도시의 이름을 중복 없이 출력하시오.
Answer
select distinct(city)
from station
where city regexp "[^aeiou]$" and city regexp "^[^aeiou]"
728x90
728x90
'Language > SQL' 카테고리의 다른 글
[HackerRank][SQL][JOIN] Basic Join, Population Census - 컴도리돌이 (0) | 2022.05.19 |
---|---|
[HackerRank][SQL][JOIN] Basic Join, Ollivander's Inventory - 컴도리돌이 (0) | 2022.05.19 |
[HackerRank][SQL] Weather Observation Station 10 - 컴도리돌이 (0) | 2022.05.18 |
[HackerRank][SQL] Weather Observation Station 9 - 컴도리돌이 (0) | 2022.05.18 |
[HackerRank][SQL] Weather Observation Station 8 - 컴도리돌이 (0) | 2022.05.18 |