You are viewing a single comment's thread. Return to all comments →
Solve using Regular Expression
SELECT DISTINCT CITY FROM STATION
WHERE CITY NOT REGEXP '^[aeiouAEIOU]' -- Does not start with a vowel
AND CITY NOT REGEXP '[aeiouAEIOU]$'; -- Does not end with a vowel
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 12
You are viewing a single comment's thread. Return to all comments →
Solve using Regular Expression
SELECT DISTINCT CITY FROM STATION
WHERE CITY NOT REGEXP '^[aeiouAEIOU]' -- Does not start with a vowel
AND CITY NOT REGEXP '[aeiouAEIOU]$'; -- Does not end with a vowel