Computer Science, asked by turnussilver, 2 months ago

SQL Question :
I wrote this as an answer :

select distinct city from station
where lower(city) like '[aeiou]%[aeiou]';

but it is not showing any answer why ?

Attachments:

Answers

Answered by ishita8846
1

ʏᴏᴜ ᴄᴏᴜʟᴅ ᴛʀʏ ᴛʜɪs :-

▶In Microsoft SQL server you can achieve this from below query:

SELECT distinct City FROM STATION WHERE City LIKE '[AEIOU]%[AEIOU]'

OR

▶You could use a regular expression:

SELECT DISTINCT city FROM station WHERE city LIKE '^[aeiouAEIOU].*[aeiouAEIOU]$'

Similar questions