Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

Want to know unmatched records in the same table between two fields

How to get unmatched records in the same table between two fields:

Example:

a_NOT_Matching_to_d:

LOAD 

a,

b,

c,

d,

e,

f

    

    

FROM

(qvd)

since i want to know the unmatched data between a and d field.

8 Replies
MK_QSL
MVP
MVP

you can use where exists function... Provide sample data along with the result you are looking for.

manoranjan_d
Specialist
Specialist
Author

can u explain in the example code how to use that, bcoz its showing error

manoranjan_d
Specialist
Specialist
Author

can any one explain how to get unmatched records between two fields in same table

manoranjan_d
Specialist
Specialist
Author

exists function is used to get matched dat

Not applicable

Hi,

Can you provide sample data for the fields mentioned, including examples for both matching and unmatching data?

manoranjan_d
Specialist
Specialist
Author

example "a" field has 1, 2,3,4, 5, 6,7,8,9,10

d field has 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,

so the unmatched is 11-15 i need that data.

MK_QSL
MVP
MVP

where not exists

maxgro
MVP
MVP

1.png

// test data

all_data:

load rowno() as a AutoGenerate 10;

Concatenate (all_data) load round(rand()*10) as d AutoGenerate 10;

//not matching

a_NOT_Matching_to_d:

load a as dd Resident all_data

Where not exists (d, a);