~고군분투 인생살이~

[EASY] Weather Observation Station 7 본문

SQL/HACKER_RANK

[EASY] Weather Observation Station 7

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

1. 문제 설명

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.

2. 문제 풀이

3. 결과 

SELECT DISTINCT city 
FROM STSATION 
WHERE city REGEXO '[AEIOUaeiou]$.*'

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

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