0

Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Y

Hacker Rank SQL problem

9th Aug 2022, 5:57 PM
Bhuvanagiri Revanth
Bhuvanagiri Revanth - avatar
1 Antwort
0
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') and (city like 'a%' or city like 'e%' or city like 'i%' or city like 'o%' or city like 'u%') 1)They are many ways to do it. I chose basic method by using wild card operators "like" '%_' for ending character and '_%' for starting character.
9th Aug 2022, 6:01 PM
Bhuvanagiri Revanth
Bhuvanagiri Revanth - avatar