Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Informatica Training

Informatica Power center

Aim: To find out sum of salary for individual Job by using aggregate
Transformation.

Overview: Database as a schema named HR under which we have a


table called Employee.(has many more records other than the picture
below)

Source: The above table employee is the source table. It has a column named
Job_ID . For the individual job title we find total salary.
Target: Intention is to create a table with same instance so we create a table
instance. I created it in the database and imported the table as shown below.

Below pic shows the schema HR having target table T_Employee whose
content is the above pic and source table Employees:
Steps in Informatica Power center:
1. (repo manager)Connect to the repository and in designer open
the project folder.

2. (Designer Tab)Click on sources and then import from database


option and the give required connection details and import the
table Employees

3. Similarly do it for target table T_Employee.


4. Then create a mapping(Give it a name)

5. The pic as a dialog box called AGGTRANS Aggregator which


is the transformation.

6. The source is dragged to the map which automatically generates


the qualifier which is connected (all columns) to the aggregate
transformation. Then edit this transformation to give required
result. In ports I created a new column called sum_of_salary and
the box is checked for group by clause of Job_ID port. Output
port of sum of salary is only checked and input of salary as we
do not take it in the target.
7. Logic behind the Sum_of_salary port

8. Then mapping is saved after validating the logic and connecting


with the target table.

Workflow Tab:
1. Create a session and assign the mapping created to the session.

2. Create a workflow and then link the session with the workflow.
3. Then click open the session and give required connection data
for source and target.

4. Then save once workflow is valid, and then start workflow.

Monitor:

If session and workflow is success it shows succeeded. Also


view session log.
Final Table in database:

You might also like