Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
shrikavi2008
Contributor
Contributor

update column and key column are same

Hi,

I have id and status column in my target table.
I will get id from source, if id is already exist and status, then i want to update the status='N' and insert a new records.

Please let me know, how do we check status in the target column and update the status='N'


Regards,
R.Bharath

Labels (2)
2 Replies
vapukov
Master II
Master II

In Output component for You database select Update in action on data and Use Field option in Advanced settings, You can select key for update and column for update (unchecked column not changed, checked will null if missed in tMap)

0683p000009MFr1.png 
0683p000009MFr6.png
shrikavi2008
Contributor
Contributor
Author

Thanks for your response.
my scenario is like update table_name set status =  'N' where status='Y' and id=?
Not sure how to handle this query in tOracleOutput component.