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]$');




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube