Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
paulwalker
Creator III
Creator III

Find Modified records in Incremental load

Hi Community,

I have implemented Incremental load, it's working properly.

New records and Deleted records working perfect....

But, I have one base table, someone modified some records.

How to find modified records???

Thanks in Advance...

3 Replies
senpradip007
Specialist III
Specialist III

Do you have any field containing timestamp in your table?

tresesco
MVP
MVP

Basically you have to check if the updated timestamp in db is greater that the last execution time. The following script would help you deal Insert and Update case :

QV_Table:

SQL SELECT PrimaryKey, X, Y FROM DB_TABLE

WHERE ModificationTime >= #$(LastExecTime)#;

Concatenate LOAD PrimaryKey, X, Y FROM File.QVD

WHERE NOT Exists(PrimaryKey);

STORE QV_Table INTO File.QVD;

For better understanding, refer help/manual.

maxgro
MVP
MVP

How do you know someone modified some records?

Use the same logic in the Qlik script to check for modified records; usually there is in the source table a timestamp, date or counter to detect record changed: you store the last change in Qlik and, at the next reload, you check the timestamp, date or counter bigger than the stored one.