HackerRank/SQL
[hackerrank] Weather Observation Station 7
예쁜꽃이피었으면
2022. 8. 8. 16:55
[hackerrank] Prepare > SQL > Basic Select > Weather Observation Station 7
[문제]
Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates.
Input Format
The STATION table is described as follows:

where LAT_N is the northern latitude and LONG_W is the western longitude.
[MYSQL]
[ORCALE]
select distinct(city)
from station
where regexp_like(city,'a$|e$|i$|o$|u$','i')
order by city;
https://neocan.tistory.com/348
오라클 정규식 (REGEXP) 사용법
오라클 정규식 (REGEXP) 오라클은 10g 부터 REGEXP로 시작하는 함수를 지원 합니다. (Regular Expression 이라는 정규식의 의미 입니다.) 이 함수를 통해 데이터의 패턴을 보다 다양하게 찾고, 변경할 수 있
neocan.tistory.com
반응형