We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 11
Weather Observation Station 11
Sort by
recency
|
4033 Discussions
|
Please Login in order to post a comment
'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');
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';
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')
SELECT DISTINCT CITY FROM STATION WHERE CITY NOT REGEXP '^[aeiouAEIOU]' OR CITY NOT REGEXP '[aeiouAEIOU]$';
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