Weather Observation Station 12
- URL : https://www.hackerrank.com/challenges/weather-observation-station-12/problem
- Query the list of CITY names from STATION that do not start with vowels and do not end with vowels. Your result cannot contain duplicates.
- MySQL Solution
1
2
3
4
select distinct(city)
from station
where right(city, 1) not in ('a','e','i','o','u') and
left(city, 1) not in ('a','e','i','o','u')