Weather Observation Station 6
- URL : https://www.hackerrank.com/challenges/weather-observation-station-6/problem
- Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates.
- MySQL, Oracle Solution
1
2
3
4
5
6
7
select distinct(city)
from station
where (city like 'A%' or
city like 'E%' or
city like 'I%' or
city like 'O%' or
city like 'U%' );