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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

eliminate common records in two different table

Hi Everyone,

Actually i have a issue to eliminate common record between two table i show u example please help me out.

table a:

invoiceno,amount

1,100

2,100

3,100

table b:

invoiceno,amount

1,100

2,100

3,100

4,200

5,200

i want only display invoiceno-4,5 record others eliminate which are available in table a.

output which i require

table c:

4,200

5,200

7 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Just an example with inline loads. You can replace them with your real load statements.

[table a]:

load * inline [

invoiceno,amount

1,100

2,100

3,100

];

[table b]:

NoConcatenate

load * inline [

invoiceno,amount

1,100

2,100

3,100

4,200

5,200

]

where not exists(invoiceno);

drop table [table a];

If you want to keep table a and b then leave out the last drop table statement and add another load statement to load table b without the not exists statement.


talk is cheap, supply exceeds demand
v_iyyappan
Specialist
Specialist

Hi,

PFA,

Hope its help,

Regards,

Anonymous
Not applicable
Author

hi how to store this information in qvd i try to store that remaining record  but only invoice id is storein qvd i need to store some other columns also

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use a STORE command to store a table:

Store [table b] into table_c.qvd;


talk is cheap, supply exceeds demand
saumyashah90
Specialist
Specialist


Store tableb into table_master.qvd(QVD);

then later what you can do is

load * from newtable;

concatenate

load * from table_master.qvd where not exists(invoice id);

Anonymous
Not applicable
Author

Hi Guys,

thanks for your reply i try all these solution but data not matching after apply all logic whatever given by you is there any other solution so please let me know.

saumyashah90
Specialist
Specialist

what you can do is store everything in qvd for your record.

If you want only new record what you can do is

QVD:

Load * from qvd;

Newdata:

NoConcatenate

load * resident tableb where not exist(invoice id);

this should solve your problem