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.
SELECT DISTINCT CITY FROM Station WHERE SUBSTR(LOWER(CITY), 1, 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(LOWER(CITY), LENGTH(city), 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(UPPER(CITY), 1, 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(UPPER(CITY), LENGTH(city), 1) NOT IN ('a', 'e', 'i', 'o', 'u');
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 12
You are viewing a single comment's thread. Return to all comments →
MYSQL
SELECT DISTINCT CITY FROM Station WHERE SUBSTR(LOWER(CITY), 1, 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(LOWER(CITY), LENGTH(city), 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(UPPER(CITY), 1, 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND SUBSTR(UPPER(CITY), LENGTH(city), 1) NOT IN ('a', 'e', 'i', 'o', 'u');