Initially in the mapping designer I’m goanna create a mapping as below. And in this mappingI’m using lookup, expression, filter, update strategy
to drive the purpose. Explanation of each andevery Transformation is given below.
here we are goanna see the purpose and usage of all the transformations that we have usedin the above mapping.
Look up Transformation:
The look Transformation looks the target table and compares the samewith the source table. Based on the Look up condition it decides whether we need to update, insert,and delete the data from being loaded in to the target table.
As usually we are goanna connect Empno column from the Source Qualifier and connect it tolook up transformation. Prior to this Look up transformation has to look at the target table.
Next to this we are goanna specify the look up condition empno =empno1.
Finally specify that connection Information (Oracle) and look up policy on multiple mismatches(use last value) in the Properties tab.
We are using the Expression Transformation to separate out the Insert-
stuff’s and Update
Drag all the ports from the Source Qualifier and Look up in to Expression.
Add two Ports and Rename them as Insert, Update.
These two ports are goanna be just output ports. Specify the below conditions in theExpression editor for the ports respectively.
iif(not isnull(ENO1) and decode(SAL,Curr_Sal,1,0)=0,1,0)