Query the list ofCITYnames fromSTATIONwhich have vowels (i.e.,a,e,i,o, andu) as both their firstandlast characters. Your result cannot contain duplicates.
Input Format
TheSTATIONtable is described as follows:
whereLAT_Nis the northern latitude andLONG_Wis the western longitude.
My Answer
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');