You are viewing a single comment's thread. Return to all comments →
SELECT DISTINCT CITY FROM STATION WHERE UPPER(SUBSTR(CITY, -1, 1)) IN ('A', 'E', 'I', 'O', 'U');
Alternative Approach Using REGEXP You can also use the REGEXP operator for a more concise solution:
SELECT DISTINCT city FROM STATION WHERE city REGEXP '[aeiou]$';
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 7
You are viewing a single comment's thread. Return to all comments →
SELECT DISTINCT CITY FROM STATION WHERE UPPER(SUBSTR(CITY, -1, 1)) IN ('A', 'E', 'I', 'O', 'U');
Alternative Approach Using REGEXP You can also use the REGEXP operator for a more concise solution:
SELECT DISTINCT city FROM STATION WHERE city REGEXP '[aeiou]$';