Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where statement not working

This should be simple but . . . .. I simply want to remove customers who have the name "Sample" in the field CutomerName. The table is an ODBC connection to a Microsoft Access database. I am using":

SQL SELECT .. . . . . FROM MyTable WHERE CustomerName not like '*sample*';

It is not removing the customers with Sample in their name. What am I doing wrong?

THanks,

Stephen

2 Replies
Anonymous
Not applicable
Author

Try replacing * with %?

SQL SELECT .. . . . . FROM MyTable WHERE upper(CustomerName) not like '%SAMPLE%';

Not applicable
Author

That did the trick. Thanks Dinesh!