Weather Observation Station 7

  • + 0 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]$';