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.
Weather Observation Station 6
Weather Observation Station 6
Sort by
recency
|
4683 Discussions
|
Please Login in order to post a comment
SELECT DISTINCT(city) FROM STATION WHERE city REGEXP '^[AEIOUaeiou]'; Simply REGEXP-Regular Expression used for filtering purpose ^ - Indicates beginning of the string
MS SQL SERVER:
SELECT City FROM Station WHERE City LIKE 'A%' OR CITY LIKE 'E%' OR CITY LIKE 'I%' OR CITY LIKE 'O%' OR CITY LIKE 'U%';
You would be writing the right query with lowercase vowels strange your test case would fail just for lowercase
Although the question says (a.e.i.o.u) the solution wont be accepted in lowercase make sure you guys make the vowels in uppercase to pass the test case silly isnt it ?
select distinct(city) from station where city like 'A%' or city like 'E%' or city like 'I%' or city like 'O%' or city like 'U%' ;
SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE 'A%' OR CITY LIKE 'E%' OR CITY LIKE 'I%' OR CITY LIKE 'O%' OR CITY LIKE 'U%';