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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display Common Records?

Hi All

I Have 2 Table with 5 same fields,  where F1 is Id it is unique in one table,but that id was not unique in another table.

Here:  In Table1 For F5 there is only one F1.

In Table2 For F5 there will be more than one F1  .  Now i need

The records of F1 and F5 for

1.The Common Records in both the tables

2.The Records those are not in table2 but in table1

3.The Records those are not in table1 but in table2

Please find the Attachment for data reference.

Thanks For Everyone.

9 Replies
maxgro
MVP
MVP

Attachment ?

Not applicable
Author

Hi All

I Have 2 Table with 5 same fields,  where F1 is Id it is unique in one table,but that id was not unique in another table.

Here:  In Table1 For F5 there is only one F1.

In Table2 For F5 there will be more than one F1  .  Now i need

The records of F1 and F5 for

1.The Common Records in both the tables

2.The Records those are not in table2 but in table1

3.The Records those are not in table1 but in table2

Please find the Attachment for data reference.

Thanks For Everyone.

Greg_Williams
Former Employee
Former Employee

Will this work for your desired solution?

-Greg

Not applicable
Author

May be like attached.

Thanks

AJ

Not applicable
Author

Yes Greg.

SunilChauhan
Champion II
Champion II

use inner join for common records

and

where not exists b/w two table  for two times for not common records

Sunil Chauhan
SunilChauhan
Champion II
Champion II

for common

Tab1:

Load

from table 1;

inner join

load

from table 2

for record in table2 but not in one

Tab2:

Load from Table1;

Tab3:

Load from table2 where not exists(table1Id,Table2ID);

drop table Tab2;

and just opposite for records in 1 but not in table 2

hope thishelps

Sunil Chauhan
Greg_Williams
Former Employee
Former Employee

Great. Respectfully requesting > can you please mark this thread Helpful or Correct. Thanks.

Not applicable
Author

Hi Greg Sorry for late reply...

Its not use full for my scenario.