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.



  1. SELECT DISTINCT(CITY)
  2. FROM STATION
  3. WHERE REGEXP_LIKE (UPPER(CITY), '^[AEIOU]')
  4. AND REGEXP_LIKE (UPPER(CITY), '[AEIOU]$');

download android app