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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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...

Labels (1)
3 Replies
senpradip007
Specialist III
Specialist III

Do you have any field containing timestamp in your table?

tresB
Champion III
Champion III

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.