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.
The alphabets selected are in small letter, for example 'a','e' etc. You can change it to caps or can use the upper keyword also:
SELECT DISTINCT(CITY) FROM STATION WHERE UPPER(CITY) like "a%" OR UPPER(CITY) like "e%" OR UPPER(CITY) like "i%" OR UPPER(CITY)like "o%" OR UPPER(CITY) like "u%"
But using regexp would definitely be a better practice.
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 6
You are viewing a single comment's thread. Return to all comments →
The alphabets selected are in small letter, for example 'a','e' etc. You can change it to caps or can use the upper keyword also:
SELECT DISTINCT(CITY) FROM STATION WHERE UPPER(CITY) like "a%" OR UPPER(CITY) like "e%" OR UPPER(CITY) like "i%" OR UPPER(CITY)like "o%" OR UPPER(CITY) like "u%"
But using regexp would definitely be a better practice.