Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Update Table with new data

Hello,

I have a table of data and I get incremental updates to this data every day. I am trying to update the original table with updates. Please see the attached example.

Original
Table1
AB
1aa
2cc
3ee
Updates
Table2
AB
1xx
4yy
Expected Table
Table1
AB
1xx
2cc
3ee
4yy

Thanks for the help.

2 Replies
Not applicable
Author

If field A is the key, a load like this can work:

Test:

SQL SELECT

A,

........

FROM Updates;

CONCATENATE

LOAD * from Original where not exists (A);

STORE Test into Original.QVD;

drop table test;

--Arun

Not applicable
Author

Hi,

see the attached example for the code you need.

First: inital load of your data (you need a QVD folder for this example to store the qvd-file in).

Second: modify the data in the excel table and remove the comments ("//") from step 2 and 3 in the script

Third you will have your updated table if the script runs without errors.

Good luck!

Rainer