You are viewing a single comment's thread. Return to all comments →
The task, asks for cities that either do not start with vowels 'OR' do not end with vowels. This is a logical "OR" condition, not "AND".
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');
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 11
You are viewing a single comment's thread. Return to all comments →
The task, asks for cities that either do not start with vowels 'OR' do not end with vowels. This is a logical "OR" condition, not "AND".
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');