sql query : show name with all vowels sql query : show name with all vowels sql sql

sql query : show name with all vowels


Try using and name LIKE '%a%' for your vowels, this will search the entire string and not just the last letter.

For example:

SELECT nameFROM worldWHERE name LIKE '%u%'   and name LIKE '%a%'   and name LIKE '%o%'   and name LIKE '%i%'  and name LIKE '%e%'  and name NOT LIKE '% %'


SELECT name FROM world WHERE name LIKE '%a%' AND                             name LIKE '%e%' AND                             name LIKE '%i%' AND                             name LIKE '%o%' AND                             name LIKE '%u%'


WHERE CustomerName LIKE '%a' Finds any values that ends with "a"

This must be your problem like Ankit is referring to

WHERE CustomerName LIKE '%or%' Finds any values that have "or" in any position