Weather Observation Station 12

Sort by

recency

|

2424 Discussions

|

  • + 0 comments
    SELECT DISTINCT CITY
    FROM STATION
    WHERE UPPER(LEFT(CITY, 1)) NOT IN ('A', 'I', 'U', 'E', 'O') 
    OR UPPER(RIGHT(CITY, 1)) NOT IN ('A', 'I', 'U', 'E', 'O')
    
  • + 0 comments
    SELECT DISTINCT
        CITY
    FROM
        STATION
    WHERE
        LOWER(LEFT(CITY, 1)) NOT IN ('a', 'e', 'i', 'o', 'u')
        AND LOWER(RIGHT(CITY, 1)) NOT IN ('a', 'e', 'i', 'o', 'u')
    
  • + 0 comments

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

    why two NOTs, why not in a single NOT because the questions ask to check for both left right and indivdually

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE NOT (LOWER(LEFT (CITY ,1))IN ('a','e','i','o','u')) AND NOT (LOWER (RIGHT(CITY ,1))IN('a','e','i','o','u'));

  • + 0 comments

    select distinct city from station where city NOT REGEXP '^[aeiouAEIOU]' and city NOT REGEXP '[aeiouAEIOU]$'