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.
For MS SQl Server you can use LIKE with[^] OR as alternative NOT LIKE []:
SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[^AEIOU]%' OR CITY LIKE '%[^AEIOU]'ORDER BY CITY;
alternative with NOT LIKE:
SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE '[AEIOU]%' OR CITY NOT LIKE '%[AEIOU]'ORDER BY CITY;
Weather Observation Station 11
You are viewing a single comment's thread. Return to all comments →
For MS SQl Server you can use LIKE with[^] OR as alternative NOT LIKE []: SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[^AEIOU]%' OR CITY LIKE '%[^AEIOU]'ORDER BY CITY; alternative with NOT LIKE: SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE '[AEIOU]%' OR CITY NOT LIKE '%[AEIOU]'ORDER BY CITY;