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.
It is wrong because the question say that the city name cannot begin with OR end with a vowel. In your answer the city name won't begin AND end with a vowel. You could have wrote SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[^AEIOU]%' OR CITY LIKE '%[^AEIOU]';
Cookie support is required to access HackerRank
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 →
It is wrong because the question say that the city name cannot begin with OR end with a vowel. In your answer the city name won't begin AND end with a vowel. You could have wrote SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[^AEIOU]%' OR CITY LIKE '%[^AEIOU]';