Informatica 1.

Transformations: in informatica a transformation helps to transform the source data according to the requirement of the target system. It also ensures the quality of data that is being loaded. There are two types of transformations: active and passive. • Active: an active transformation can change the number of rows that can pass through it i.e. it can delete or eliminate the rows that do not meet the conditions in transformation. • Passive: a passive transformation does not change the number of rows that pass through it i.e. it allows all rows through the transformation. Transformations can be connected or unconnected. Connected transformation is connected to other transformations or directly to the target table in the mapping. Unconnected transformation is not connected to other transformations in the mapping. It is called within another transformation, and returns a value to that transformation. List of Transformations in informatica: • • • • • • • • • • • • • • • Aggregator transformation. Expression transformation. Filter transformation. Joiner transformation. Lookup transformation. Normalizer transformation. Rank transformation. Router transformation. Sequence generator transformation. Stored procedure transformation. Sorter transformation. Update strategy transformation. XML source qualifier transformation. Advanced external procedure transformation. External transformation.

Aggregator Transformation: It’s an active and connected transformation. Useful to perform calculations such as averages and sums (mainly to perform calculations on multiple rows or groups). Eg: total of monthly or yearly sales. Aggregate functions such as AVG, FIRST, COUNT, PERCENTILE, MAX, SUM can be used.

Full outer join keeps all rows of data from both master and detail. Eg: retrieving the sales of a product with particular ID assuming that sales data reside in another table. Eg: converting date to string. concatenating first and second names. It is must to specify one source as master and other as detail when joining two sources. Joiner Transformation: It’s an active and connected transformation. Lookup Transformation: It’s passive. Eg: grouping employees who belong to a particular department. It discards the unmatched rows from the detail source. Detail outer join keeps all rows of the data from the master source and the matching rows from the detail source. It can be used to calculate values in a single row before writing to the target. Master outer join discards all the unmatched rows from the master source and keeps all the rows from the detail source and the matching rows from the master source. In order to join two sources there must be at least one matching port. joining a relational source and XML source. Joiner supports the following types of joins: • Normal • Master outer • Detail outer • Full outer Normal join discards all the rows of data from the master and detail source that do not match.Expression Transformation: It’s passive and connected transformation. Connected lookup receives input values directly from the mapping pipeline whereas unconnected lookup receives input from LKP expression from another transformation. Lookup definition can be imported either from source or target tables. view or synonym. In this case we can use lookup transformation to lookup the data for the product with that ID in sales table. It can be both connected and unconnected as well. Filter Transformation: It’s an active and connected transformation. Eg: joining two flat files. based on the condition. It can be used to filter rows in a mapping that do not meet the condition. . It can be used to join two sources coming from two different locations or same location. It’s used to lookup data in a relational.

By default it has two fields CURRVAL and NEXTVAL (we cannot add ports to this transformation). It has two output ports to connect transformations. Router Transformation: It is an active and connected transformation. Normalizer Transformation: It’s an active and connected transformation. state=AP etc. filter drops the data that do not meet the condition whereas router has option to capture the data that do not meet the condition. it is easy to route data to different tables. output and default groups. Stored procedure Transformation: It is passive and connected & unconnected. It is used to select the top or bottom rank of data. Connected lookup supports user defined values whereas unconnected lookup does not support user defined values. It is useful to automate time-consuming tasks and it is also used in error handling. Eg: to filter data where state=TN. target. to drop and recreate indexes and to determine the space in database. and the stored procedure can exist in a source. It is similar to the filter transformation. The stored procedure must exist in the database before creating a stored procedure transformation. . Eg: to select 10 regions where the sales volume was very high or 10 lowest price products. NEXTVAL – generates a sequence of number by connecting it to a transformation or target. It is useful to test multiple conditions. It can also be used to create multiple rows of data from a single row of data. It’s mainly used with COBOL sources where most of the times data is stored in denormalized format.Connected lookup returns multiple columns from the same row whereas unconnected lookup has one return port and returns one column from each row. It is used to create unique primary key values or cycle through a sequential range of numbers to replace missing keys. It has input. The only difference is. CURRVAL – is the NEXTVAL plus one or the NEXTVAL plus the increment by value. or any database with a valid connection to the informatica server. a specialized calculation etc. Rank Transformation: It’s active and connected. Sequence generator Transformation: It is a passive and connected transformation.

You can specify how to treat source rows in table. XML source qualifier Transformation: It is passive and connected. either to maintain history of data or recent changes. . join data from two or more tables etc. It is useful in creating external transformation applications. and specify whether the output rows should be distinct. such as sorting and aggregation.A stored procedure is an executable script with SQL statements and control statements. filtering records. External procedure Transformation: It is active and connected/unconnected. which are created outside of the designer to extend PowerCenter/PowerMart functionality. In such cases external procedure is useful to develop complex functions within a dynamic link library(DLL) or UNIX shared library. When adding a relational or flat file to source definition to a mapping. Source qualifier Transformation: It is an active and connected transformation. instead of creating the necessary expression transformations in a mapping. Also used to configure for case-sensitive sorting. delete or data driven. It is used only with an XML source definition. Update strategy Transformation: It is active and connected. it is must to connect it to a source qualifier transformation. It is used to update data in a target table. It performs various tasks such as overriding default SQL query. insert. which require all input rows to be processed before emitting any output rows. update. It operates in conjunction with procedures. user-defined variables and conditional statements. Sorter Transformation: It is a connected and an active transformation. It represents the data elements that the informatica server reads when it executes a session with XML sources. Sometimes the standard transformations such as expression transformation may not provide the functionality that you want. Advanced external procedure Transformation: It is active and connected. It allows sorting data either in ascending or descending order according to a specified field.

whereas advanced external procedure returns multiple values.External procedure returns a single value. .External procedure supports COM and informatica procedures. whereas AEP supports only informatica procedures.