Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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!