Weather Observation Station 7

Sort by

recency

|

2998 Discussions

|

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

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '%a' OR CITY LIKE '%e' OR CITY LIKE '%i' OR CITY LIKE '%o' OR CITY LIKE '%u';

  • + 0 comments

    select distinct city from station where right(city,1) in ('a','e','i','o','u');

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '%a' OR CITY LIKE '%e' OR CITY LIKE '%i' OR CITY LIKE '%o' OR CITY LIKE '%u';

  • + 0 comments

    select distinct(CITY) FROM STATION

    WHERE SUBSTRING(CITY,len(city),len(city)) IN ('a','e','i','o','u')