Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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!
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
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);
Addition to Rocky's:
... and STORE the result into the same QVD