Skip to content
Advertisement

SQL select query retrieval blank return

I have to retrieve distinct entities from a column, all of which start with a vowel. The query looks like this :

It’s not giving compilation errors, but it’s not returning anything. Any ideas?

Advertisement

Answer

You can use regular expressions:

LIKE wildcard patterns do not support character classes, except in a couple of databases that extend the definitions of the LIKE pattern.

Also, you might want:

If you have a case-sensitive collation.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement