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: 
userid128223
Creator
Creator

update and append when there is no uniq key

Hi Everyone I have data that does not have 1:1 relation ship for update and append. In order to do find 1:1 relation ship between new_qvd & Master_QVD i have to create a composite key. However when i tried doing below it still does not give me the results I am looking for. It only takes all data in New_QVD and creates new Merge_Data.

Ideally what I want is update Master Data QVD with new updates (if it exist) in New_QVD and append new records that are not there.

Merge_Data:

LOAD

     ID,

     Date,

     StoreNo,

     Name,

     amount

FROM      NEW_QVD.qvd (qvd);    

Concatenate (Merge_Data)

LOAD

     ID,

     Date,

     StoreNo

     Name,

     amount

FROM      MASTER_QVD.qvd (qvd);    

WHERE not exists(ID&StoreNo&Date);

10 Replies
userid128223
Creator
Creator
Author

Hi Swuehl

I haven't tried your solution because I know I will get key not found error.