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

How to merge recent data into qvd

Hi,

At the moment we have a QVD-file with all the data from our database.

The plan is to do an incremental load every day or week, so we get a second QVD with only the new and modified data from our database.

Then every time we do an incremental load, we want to merge this data into our original QVD, so that we only have 1 QVD with all the data.

For the new records, this would be no problem, because they are just being added to the original QVD. But for the modified records, this would give us some problems, because we can't just add them to the original QVD, because we would have double data.

So we should have a method to check if there already exists a record inside the original QVD with the same keyvalue, if not, just add the record to the QVD, if yes, overwrite the existing record in the original QVD with the record from the QVD from the incremental load.

Somebody who has got an answer to this?

Thanks in advance!

3 Replies
matt_crowther
Specialist
Specialist

Look at 'Case 3' under the 'Using QVD Files for Incremental Load' in the Qv help file.

based on what you require that should work.

Hope that helps,

Matt - Visual Analytics Ltd

boorgura
Specialist
Specialist

You will have to determine what would be the KEY that would uniquely identify the records for repetition and then use:

LOAD ...

from Database;

concatenate

LOAD ...

from QVD where not exists(KEY);

Anonymous
Not applicable
Author

Addition to Rocky's:
... and STORE the result into the same QVD