HackerRank MySQL - Weather Observation Station 11


Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates.

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

download android app