Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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

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.]

tresesco
MVP
MVP

@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.