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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Update data into database

Hello everyone,

I want to update a data in the database, overwriting it. But my problem is: I don't want to overwrite a field WITH VALUES with a NULL value. I want to retain the value in a certain field if my update contains null. I am using EXPRESSOR.

Ok here is an example to show you what I meant:

Assuming this is the existing value in the database:

IDNameAddressPhoneSalesAreaDate
1Reaganlindenweg 61234561000Seewil12/31/2012

And I want to update that with these data using ID field as the key:

IDNameAddressPhoneSalesAreaDate
18001/23/2013

I want my result to be like this:

IDNameAddressPhoneSalesAreaDate
1Reaganlindenweg 6123456800Seewil1/23/2013

I have tried UPDATE MODE in "Write Table Operator" in Expressor but old values are overwritten with NULL values. Can you help me on this? Thanks a lot.

1 Reply
Not applicable
Author

I dont have to many experiences with expresasor, but in other etl tools this kind of cdc needs rather to read both tables, join old with new rows, checking if update is needed calculating new fields values and then updating DB.

regards

Darek.