- Let us assume that EMP will be source table. DEPT will be LOOKUP table.
- Create a target table T_CONN_LKP_EMP in target designer. Table should contain all ports of EMP table plus DNAME and LOC.
- Creating Mapping by click Tools -> Mapping Designer.
- Click Mapping-> Create-> Give name. Ex: m_CONN_LKP_EMP
- Drag EMP and Target table.
- Connect all fields from SQ_EMP (Source Qualifier transformation) to target except DNAME and LOC.
- Then go to Transformation-> Create -> Select LOOKUP from list. Give name and click Create.
- As DEPT is the Source definition, click Source and then Select DEPT.
- Click Ok.
- Now Pass DEPTNO from SQ_EMP to this Lookup. DEPTNO from SQ_EMP will be named as DEPTNO1. Edit Lookup and rename it to IN_DEPTNO in ports tab.
- Now go to CONDITION tab and add CONDITION.
- DEPTNO = IN_DEPTNO and Click Apply and then OK.
- We are not passing IN_DEPTNO and DEPTNO to any other transformation from LOOKUP; we can edit the lookup transformation and remove the OUTPUT check from them.
- The final mapping look like as shown below..
- Then Mapping -> Validate and save the mapping.
- Create Session and Workflow. Run the workflow and see the data in target table.
- Make sure to give connection information for all tables.
- Make sure to give connection for LOOKUP Table also.
- We use Connected Lookup when we need to return more than one column from Lookup table.
Saturday, May 5, 2012
Connected Lookup Transformation
Subscribe to:
Post Comments (Atom)
Great Article
ReplyDeleteArtificial Intelligence Projects
machine learning final year projects 2020
JavaScript Training in Chennai
JavaScript Training in Chennai Project Centers in Chennai
I have read your blog its very attractive and impressive. I like it your blog. Digital Marketing Company in Chennai