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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
prma7799
Master III
Master III

Incremental Load

Hi All,

I have one table called "GL Entry " i wanted to apply incremental logic on it and EntryNo has unique key.


Can anyone explain me how to apply incremental logic for Insert and update .




Thanks

1 Solution

Accepted Solutions
shraddha_g
Partner - Master III
Partner - Master III

if you have stored one time data into qvd then you can get Max(EntryNo) from that Qvd

MaxDate:

Load

Max(EntryNo) as LastUpdatedEntry

from......PreviouslyLoaded.qvd

(qvd);

Let vEntry = num(num#(peek('LastUpdatedEntry')));

OracleNewData:

Sql Select *

From ..Source

Where EntryNo > $(vEntry) ;  // Here EntryNo format should match with the one with the Oracle EntryNo field

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

if you have stored one time data into qvd then you can get Max(EntryNo) from that Qvd

MaxDate:

Load

Max(EntryNo) as LastUpdatedEntry

from......PreviouslyLoaded.qvd

(qvd);

Let vEntry = num(num#(peek('LastUpdatedEntry')));

OracleNewData:

Sql Select *

From ..Source

Where EntryNo > $(vEntry) ;  // Here EntryNo format should match with the one with the Oracle EntryNo field

prma7799
Master III
Master III
Author

I thing this logic useful for only insert how to apply logic for UPDATE

shraddha_g
Partner - Master III
Partner - Master III

MaxDate:

Load

Max(EntryNo) as LastUpdatedEntry

from......PreviouslyLoaded.qvd

(qvd);

Let vEntry = num(num#(peek('LastUpdatedEntry')));

OracleNewData:

Sql Select *

From ..Source

Where EntryNo > $(vEntry) ;

Concatenate

Load *

From PreviouslyLoaded.qvd

Where not exists(EntryNo,EntryNo)  

;

Store OracleNewData into PreviouslyLoadedQvd;