Weather Observation Station 11

Sort by

recency

|

4033 Discussions

|

  • + 0 comments

    'OR' is important

    select distinct city from station where left(city,1) not in ('A','E','I','O','U') OR right(city,1) not in ('a','e','i','o','u');

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE 'A%' AND CITY NOT LIKE 'E%' AND CITY NOT LIKE 'I%' AND CITY NOT LIKE 'O%' AND CITY NOT LIKE 'U%' OR CITY NOT LIKE '%A' AND CITY NOT LIKE '%E' AND CITY NOT LIKE '%I' AND CITY NOT LIKE '%O' AND CITY NOT LIKE '%U';

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE LEFT(CITY, 1) NOT IN ('A', 'E', 'I', 'O', 'U') OR RIGHT(CITY, 1) NOT IN ('a', 'e', 'i', 'o', 'u')

  • + 0 comments

    SELECT DISTINCT CITY FROM STATION WHERE CITY NOT REGEXP '^[aeiouAEIOU]' OR CITY NOT REGEXP '[aeiouAEIOU]$';

  • + 4 comments

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

    why this is not working

    select distinct CITY from STATION where left(CITY, 1) not in ('a','e','i','o','u') and right(CITY, 1) not in ('a','e','i','o','u'); this also