Book Image

Learning Informatica PowerCenter 9.x

By : Rahul Malewar
Book Image

Learning Informatica PowerCenter 9.x

By: Rahul Malewar

Overview of this book

Table of Contents (18 chapters)
Learning Informatica PowerCenter 9.x
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

The Aggregator transformation


The Aggregator transformation is used for calculations using aggregate functions in a column as opposed to the Expression transformation that is used for row-wise manipulation.

You can use aggregate functions, such as SUM, AVG, MAX, and MIN, in the Aggregator transformation.

Use the EMPLOYEE Oracle table as the source and get the sum of the salaries of all employees in the target.

Perform the following steps to implement the functionality:

  1. Import the source using the EMPLOYEE Oracle table in Source Analyzer and create the TGT_TOTAL_SALARY target in Target Designer.

  2. Create the m_AGG_TOTAL_SALARY mapping and drag the source and target from the navigator to the workspace. Create the Aggregator transformation with the AGG_TOTAL_SAL name.

  3. As we need to calculate TOTAL_SALARY, drag only the SALARY column from the source qualifier to the Aggregator transformation.

  4. Add a new TOTAL_SALARY column to the Aggregator transformation to calculate the total salary, as shown in the...