~고군분투 인생살이~

[EASY] Weather Observation Station 8 본문

SQL/HACKER_RANK

[EASY] Weather Observation Station 8

소금깨 2022. 5. 29. 14:39

1. 문제 설명

Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. 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.

2. 문제 풀이

3. 결과 

SELECT DISTINCT CITY
FROM STATION
WHERE CITY REGEXP('^[AEIOU]')
AND CITY REGEXP('[AEIOU]$')

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

[HACKER_RANK] THE-PADS  (0) 2022.06.13
[EASY] Weather Observation Station 9  (0) 2022.05.29
[EASY] Weather Observation Station 7  (0) 2022.05.29
[EASY] Weather Observation Station 6  (0) 2022.05.29
[HACKER_RANK] THE REPORT  (0) 2022.05.01
Comments