Scenario:
We need to populate manager for an employee using ODI.
In employees table we will have manager id and we need to look that id again with employee table to get name of the manager.
Approach:
1.Creating an interface
2.Creating lookup in an interface
Pre-requisites:
1.You need to know how to create the logical and physical schema.
2.You should aware of the creating project
3.You should aware of how to create file datastore and employee datastore as well.
Execution:
1.Creating an interface
(a.)Expand the project folder
go to the First Folder and expand it
right click on the interface
Create new interface
(b.)Drag and drop the Employee datastore from model to the source side of an interface
(c.)Drag and drop the Employee_Manager_list datastore (file datastore) from model to the target side of an interface.
2.Click on
Then it will show some pop up for us
Expand your model where your employee datastore available and click next.
Select Manager Id and Employee Id and click on the Join Button .
Lookup condition you observe as follows
EMPLOYEES.MANAGER_ID=EMPLOYEES1.EMPLOYEE_ID
and click finish.
Finally interface looks as follows:
Output:
We need to populate manager for an employee using ODI.
In employees table we will have manager id and we need to look that id again with employee table to get name of the manager.
Approach:
1.Creating an interface
2.Creating lookup in an interface
Pre-requisites:
1.You need to know how to create the logical and physical schema.
2.You should aware of the creating project
3.You should aware of how to create file datastore and employee datastore as well.
Execution:
1.Creating an interface
(a.)Expand the project folder
go to the First Folder and expand it
right click on the interface
Create new interface
(b.)Drag and drop the Employee datastore from model to the source side of an interface
(c.)Drag and drop the Employee_Manager_list datastore (file datastore) from model to the target side of an interface.
2.Click on
Then it will show some pop up for us
Expand your model where your employee datastore available and click next.
Select Manager Id and Employee Id and click on the Join Button .
Lookup condition you observe as follows
EMPLOYEES.MANAGER_ID=EMPLOYEES1.EMPLOYEE_ID
and click finish.
Finally interface looks as follows:
Output:
Post your comments and your questions if you have any.
No comments:
Post a Comment