Weather Observation Station 7

Sort by

recency

|

3238 Discussions

|

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


    SELECT DISTINCT city FROM station where LOWER(RIGHT(city, 1)) IN ('a','e','i','o','u');

  • + 0 comments

    SELECT distinct(city) from station where lower(right(city,1)) IN ('a','e','i','o','u');

  • + 0 comments
    SELECT DISTINCT(CITY)
    FROM STATION 
    WHERE RIGHT(CITY,1) IN ('a','e','i','o','u')
    
  • + 0 comments

    ORACLE PL/SQL:

    SET SERVEROUTPUT ON; BEGIN FOR r IN (SELECT DISTINCT CITY FROM STATION WHERE LOWER(SUBSTR(CITY,-1,1)) IN ('a','e','i','o','u')) LOOP DBMS_OUTPUT.PUT_LINE(r.city); END LOOP; END; /

  • + 0 comments

    Solution for Oracle: SELECT DISTINCT(CITY) FROM STATION WHERE UPPER(SUBSTR(CITY,-1,1)) IN ('A','E','I','O','U');