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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Retrieving information-unique data comparing 2 tables

Hi,

Could anybody assist wtih this issue I have ?

How can I retrieve unique information from 2 resident tables. I only want what is still unique do table 2

Table 1

Column 1  | Column 2 | Column3

20130601 |    'Jam'      | Serial N. 2233

20130610 |    'Milk'      | Serial N. 2234

Table 2

Column 1  | Column 2 |

2233          | 'Produce' |

2234          | 'Produce' |

2235          | 'Produce' |

2236          | 'Produce' |

What I want is to retrieve 2235 and 2236 from Table 2. Thanks in advance.

Rui

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

6 Replies
Not applicable
Author

hi,

use exists function.

syntax:

Load * [source] where not exists (<current table field to check>,<already loaded field to check>);

Niranjan M.

Not applicable
Author

Niranjan,

So would this be something like:

load * resident Table2 where not exists (Table.Column2, Table1.Column3);?

Not applicable
Author

Hi thanks for your reply.

Ok,

I used 2235 and 2236 as example. There are plenty ID that require selection.

Not applicable
Author

Attached the QVW which will get the unique records from 2 tables.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

Hi Guys,

Thanks a million!! That solves it.