HackerRank MySQL - 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.
- SELECT DISTINCT(CITY)
- FROM STATION
- WHERE REGEXP_LIKE (UPPER(CITY), '^[AEIOU]')
- AND REGEXP_LIKE (UPPER(CITY), '[AEIOU]$');