I want to query the list of CITY names from the table STATION(id, city, longitude, latitude) which have vowels as both their first and last charact
CITY
STATION(id, city, longitude, latitude)
Try this below code,
SELECT DISTINCT CITY FROM STATIOn WHERE city RLIKE '^[aeiouAEIOU].*.[aeiouAEIOU]$'