~고군분투 인생살이~

[EASY] Weather Observation Station 8 본문

SQL/HACKER_RANK

[EASY] Weather Observation Station 8

소금깨 2022. 10. 26. 03:14
 

Weather Observation Station 8 | HackerRank

Query CITY names that start AND end with vowels.

www.hackerrank.com

 

문제 조건

a,e,i,o,u로 시작하면서 끝나는 city 이름을 유니크하게 출력하시오.

 

문제 풀이 

select distinct city
from station
where city regexp '^[a,e,i,o,u]'
and city regexp '[a,e,i,o,u]$'

'SQL > HACKER_RANK' 카테고리의 다른 글

[MEDIUM] Top Competitors  (0) 2022.10.26
[MEDIUM] The Report  (0) 2022.10.26
[EASY] Weather Observation Station 7  (0) 2022.10.26
[EASY] Weather Observation Station 6  (0) 2022.10.26
[Medium] Weather Observation Station 20  (0) 2022.10.24
Comments