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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Adhi
Partner - Contributor
Partner - Contributor

Not Match versus <>

Can someone explain why I am getting different results depending on how the WHERE is written?

Table1:

LOAD *

FROM sales.qvd(qvd)

WHERE NOT MATCH(Status, 'removed');

 

Table1:

LOAD *

FROM sales.qvd(qvd)

WHERE Status <> 'removed';

 

NOT MATCH gives less rows compared to <>

Labels (4)
4 Replies
marcus_sommer
MVP
MVP

I think I would add recno() and rowno() to the load to identify the different/missing records and could imagine that this result will explain the different handling of the methods (maybe NULL is also skipped).

Or
MVP
MVP

Match() is case sensitive, while <> is not case sensitive.

[Edit: No, they're both case sensitive. Oops.]

tresB
Champion III
Champion III

@Or I did a quick test :

tresesco_0-1724148757518.png

 

I did the similar testing in script as well. It (<>/=) appears to be case-sensitive.

Or
MVP
MVP

 

Huh. Re-testing it it seems you are right. Only = is case sensitive, seemingly. My bad.