Informatica
Rank Transformation in Informatica with EXAMPLE
What is Rank Transformation? Rank transformation is an active and connected transformation that performs...
Lookup transformation is a passive transformation used to look up a source, source qualifier, or target to get the relevant data. Basically, it's a kind of join operation in which one of the joining tables is the source data, and the other joining table is the lookup table.
In previous topics, we used joiner transformation to join "emp" and "dept" table to bring department names.
In this section, we will implement the same using lookup transformation.
Step 1 – Create a new mapping with EMP as source and EMP_DEPTNAME as target
Step 2 – Create a new transformation using transformation menu then
Step 3 – This will open lookup table window, in this window
Step 4 - Lookup transformation will be created with the columns of DEPT table, now select done button
Step 5 - Drag and drop DEPTNO column from source qualifier to the lookup transformation, this will create a new column DEPTNO1 in lookup transformation. Then link the DNAME column from lookup transformation to the target table.
The lookup transformation will lookup and return department name based upon the DEPTNO1 value.
Step 6 – Double click on the lookup transformation. Then in the edit transformation window
Step 7 – Link rest of the columns from source qualifier to the target table
Now, save the mapping and execute it after creating the session and workflow. This mapping will fetch the department names using lookup transformation.
The lookup transformation is set to lookup on dept table. And the joining condition is set based on dept number.
A normal transformation is an object that belongs to a mapping and can be used inside that mapping only. However, by making a transformation reusable it can be re-used inside several mappings.
For example, a lookup transformation which fetches employee details based on employee number can be used at multiple mappings wherever employee details are required.
By using reusable transformation, it reduces the overwork of creating same functionality again.
To make a transformation reusable –
Step1 – Open the mapping which is having the transformation, here we are making the rank transformation reusable.
Step 2 – Double click on the transformation to open edit transformation window. Then
This will make the transformation reusable.
What is Rank Transformation? Rank transformation is an active and connected transformation that performs...
What is Transformation? Transformations is in Informatica are the objects which creates, modifies or...
What is Source Qualifier Transformation? Source qualifier transformation is an active, connected...
What is a Mapping? Mapping is a collection of source and target objects linked together by a set of...
In ETL/Data Warehouse, you will encounter different sources and targets. A Source in ETL is an...
Download PDF 1. What do you mean by Enterprise Data Warehousing? When the organization data is...