Skip to content
Advertisement

My query with to / NOT IN () clause not returning any values?

I have a table with the following data:

I am trying to exclude any values that are blank (” or ‘ ‘); however when I try using a NOT IN clause or NOT EQUAL TO (<>) comparison, I return 0 entries. The query I am using is below:

<> ”;

I’ve also tried:

When I do that, the following is returned:

Is Oracle not liking this symbol for some reason?

Thanks in advance.

Advertisement

Answer

You could query

since an empty TRIM results in NULL in Oracle.

Regards

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