Weather Observation Station 8
- URL : https://www.hackerrank.com/challenges/weather-observation-station-8/problem
- 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.
- MySQL Solution
1
2
3
4
select distinct(city)
from station
where left(city, 1) in ('a','e','i','o','u') and
right(city, 1) in ('a','e','i','o','u')