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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajitha1
Contributor III
Contributor III

Find unmatched record

How to find unmatched records from two tables without using joins

Labels (1)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

As shown below

BrunPierre_0-1666541662772.png

T1_Temp:
LOAD *,
Ticketno&'|'&source&'|'&destination&'|'&[time(Hrs)] as %KeyT1;
LOAD Ticketno, 
     source, 
     destination, 
     [time(Hrs)]

FROM TableSource;

NoConcatenate
T2_Temp:
LOAD *,
Ticketno&'|'&source&'|'&destination&'|'&[time(Hrs)] as %KeyT2;

LOAD Ticketno, 
     source, 
     destination, 
     [time(Hrs)]

FROM Table2Source;

UnmatchedRecords:
Load Ticketno,
     source,
     destination,
     [time(Hrs)]
     
Resident T1_Temp
Where exists(%KeyT2,%KeyT1)=0;
DROP Table T1_Temp,T2_Temp;

EXIT SCRIPT;

View solution in original post

1 Reply
BrunPierre
Partner - Master II
Partner - Master II

As shown below

BrunPierre_0-1666541662772.png

T1_Temp:
LOAD *,
Ticketno&'|'&source&'|'&destination&'|'&[time(Hrs)] as %KeyT1;
LOAD Ticketno, 
     source, 
     destination, 
     [time(Hrs)]

FROM TableSource;

NoConcatenate
T2_Temp:
LOAD *,
Ticketno&'|'&source&'|'&destination&'|'&[time(Hrs)] as %KeyT2;

LOAD Ticketno, 
     source, 
     destination, 
     [time(Hrs)]

FROM Table2Source;

UnmatchedRecords:
Load Ticketno,
     source,
     destination,
     [time(Hrs)]
     
Resident T1_Temp
Where exists(%KeyT2,%KeyT1)=0;
DROP Table T1_Temp,T2_Temp;

EXIT SCRIPT;