HackerRank-BasicSelect-Weather Observation Station 8
Weather Observation Station 8
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:
SELECT DISTINCT CITY
FROM STATION
WHERE REGEXP_LIKE(CITY, '^[AEIOUaeiou][a-zA-Z ]*[AEIOUaeiou]$');
Comments