Professional Documents
Culture Documents
ODI 12c - Mapping - Load Duplicate and Unique Records Separately Into 2 Different Target Tables
ODI 12c - Mapping - Load Duplicate and Unique Records Separately Into 2 Different Target Tables
1. In my source table am having 2 records which are duplicated, I need to store Duplicate records
and Unique records into two different tables…
Reverse Engineer above datastores and make sure those are available in your model.
Connect output port of Source datastore (EMP) to input port of aggregate component. It will pop-up
as follows. Leave it as it and click ok.
Select Aggregate Component and go to property inspector à General à In Side having clause mention
as “count(*) >1” and in side Manual group by clause mention as “EMPNO” and remove all attributes
except EMPNO.
Drag and drop the EMP datastore once again and drag and drop Join component into mapping editor
from component palette Join Aggregate component 1 to EMP Datastore as “AGGREGATE.EMPNO =
EMP.EMPNO”
Connect output port of Join component to input port for Target datastore (Employee_target_1).
It will popup then disable “Create attribute On source” and click ok.
Now connect output port of Source Datastore (EMP) to input port of Aggregate component 2. It will
pop-up, leave it as it and click ok.
Select Aggregate Component and go to property inspector à General à In Side having clause mention
as “count(*) = 1” and in side Manual group by clause mention as “EMP.EMPNO” and remove all
attributes except SID