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.
with cte1 as (
select
id,length(city)as l1
from station
)
select distinct city
from station s
join cte1 as c1 on c1.id=s.id
where substr(city,c1.l1,1)in ("a","e","i","o","u") and substr(city,1,1) 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 8
You are viewing a single comment's thread. Return to all comments →
with cte1 as ( select id,length(city)as l1 from station ) select distinct city from station s join cte1 as c1 on c1.id=s.id where substr(city,c1.l1,1)in ("a","e","i","o","u") and substr(city,1,1) in ("a","e","i","o","u")