Welcome Guest! Log in
×

Notice

The forum is in read only mode.
Due to some maintenance operations, stambia.org will be switched to read-only mode during the 13th November. It will be possible to read and download, but impossible to post on the forums or create new accounts. For any question please contact the support team.

Topic-icon Question Use of the Incremental_flag in target

More
14 Jun 2018 15:35 #1 by Damien ESPRIET
Damien ESPRIET created the topic: Use of the Incremental_flag in target
Hello,
We need to set a data in a target table of a mapping with the result of the Insert or Update operation :
- If Insert of a row, set the data with 1
- If Update of a row, set the data with 0.

One solution is to join the target table as source with an outer join and test if , but it might be a heavy operation in some case.

Stambia makes use of an Incremental_flag in its integration template.
Would it be possible to re-use this value with a case when / decode directly in the target table ?
How can we access this data in target ?

Is there any other solution ?

Thanks,
Dmaien Espriet
More
22 Jun 2018 11:11 - 22 Jun 2018 11:22 #2 by Thomas BLETON
Thomas BLETON replied the topic: Use of the Incremental_flag in target
hi Damien,

Currently you can join the source with the target table as you did, or you can setup the target table twice: one for Insertions and the other for Updates.

I'm going to transfer this need to our r&d team, I feel that we can add something in a future version to make this easier...

Edit : you can try to use the incremental flag in your expression, see the attached screenshot. Note that the method and syntax can vary depending on the Rdbms technology and on the selected Template.



Thanks
Thomas
Attachments:
Last Edit: 22 Jun 2018 11:22 by Thomas BLETON.