Sie sind auf Seite 1von 2

Name of Solution:

Mapping: Using Rank Transformation

Business Requirement:
This Mapping template sample demonstrates how to get Top and Bottom using Rank transformation

Solution URL:
https://community.informatica.com/solutions/2483

Supported Versions:
PowerCenter 9.1 and 9.5

Description:
Rank transformation is an active and connected transformation. The rank transformation is used to select the top or bottom rank of data. The rank transformation is used to select the smallest or largest numeric/string values. The integration service caches the input data and then performs the rank calculations. The Rank transformation differs from the transformation functions MAX and MIN, in that it lets you select a group of top or bottom values, not just one value. For example, use Rank to select the top 10 salespersons in a given territory. Or, to generate a financial report, you might also use a Rank transformation to identify the three departments with the lowest expenses in salaries and overhead. While the SQL language provides many functions designed to handle groups of data, identifying top or bottom strata within a set of rows is not possible using standard SQL functions. Business Case: Consider the input from a flat file or Relational table which contains a list of salary details of Employees from which we need to get the Top or Bottom N rows. The target file or table has to be populated with Ranking and Salary.

Download file contents:


1. Workflow 2. Script

Steps to implement the solution:

Please rate this solution and share your feedback on Marketplace Website.

1. Run SQL script for database schema. 2. Import workflow using the Repository Manager. Select the appropriate folder from the repository and resolve the conflicts by choosing suitable option. 3. Open mapping using PowerCenter Designer; observe the Rank transformation as shown below. We are trying to get the top 3 rank.

4. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service. 5. Edit session and assign valid connection object for the source and target. 6. For more details of importing object please visit our YouTube link. 7. Execute the workflow and observe the target table in the database schema. Observe only top 3 salaries details with their ranks.

YouTube Video on Importing and Configuring Workflows:


http://www.youtube.com/playlist?list=PLLRreK2jjjgWBQ4NPfp0QWTxYDvlnEqSJ

Other Useful links:


Mapping Bundles Workflow Bundles Informatica Tools Bundles Informatica for Social Media Bundles Debugging Tools Bundles Visio Templates Bundles B2B Templates and Projects Bundles Data Quality Packs and Plans Bundles Script Bundles

Please rate this solution and share your feedback on Marketplace Website.

Das könnte Ihnen auch gefallen