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

identify rows in 1 table not in another table

I have the following 2 tables:

Table1:
Load * Inline [
ID1
1
2
3
4
5
]
;

Table2:
Load * Inline [
ID2
1
2
3
]
;

I want to create a third table that has all rows from table 1 that are not in table 2.  (ID1 and ID2 are the same attribute.  I just labeled them uniquely in case it matters.)  How can I achieve this?

1 Solution

Accepted Solutions
Vegar
MVP
MVP

Table1:
Load * Inline [
ID1
1
2
3
4
5
];

Table2:
Load * Inline [
ID2
1
2
3
]
;

Table3:
Load
ID1 as ID3
Resident Table1
WHERE
NOT EXISTS(ID2, ID1)
;

View solution in original post

1 Reply
Vegar
MVP
MVP

Table1:
Load * Inline [
ID1
1
2
3
4
5
];

Table2:
Load * Inline [
ID2
1
2
3
]
;

Table3:
Load
ID1 as ID3
Resident Table1
WHERE
NOT EXISTS(ID2, ID1)
;