4 informatica transformation types sq and exp

36
Transformation Types

description

informatica transformation

Transcript of 4 informatica transformation types sq and exp

Page 1: 4 informatica transformation types sq and exp

Transformation Types

Page 2: 4 informatica transformation types sq and exp

Transformation Types

Source QualifierExpressionAggregatorSorterFilterJoinerLookupUpdate StrategyRouterSequence GeneratorUnionUnstructured dataTransaction Control

Page 3: 4 informatica transformation types sq and exp

Source Qualifier Transformation

ConnectedActive

Source qualifier qualifies a relational or flat file source definition in a mapping

Source qualifier represents the rows that Integration Service reads when it executes a session

Source qualifier displays transformation data types. These determine how the source database binds data when Integration Service reads it. Do not alter data types in Source qualifier

Page 4: 4 informatica transformation types sq and exp

Source Qualifier Tasks

Join data originating from same source databaseFilter records at the time of readSpecify an outer join instead of default inner joinSpecify sorted ports – Order by clauseSelect distinct values from sourceCreate a custom query to issue a special select statement to read

Page 5: 4 informatica transformation types sq and exp

Data Extract

Integration Service generates a query for each source qualifier when it runs session Default query is SELECT statement for extracting data for each source column used in mappingDefault query does not contain columns that are not used in mapping

Page 6: 4 informatica transformation types sq and exp

Default query override

In SQL query properties tab, alter or override the default queryDo not change the list of selected ports or the order they appear in the querySQL query overrides the user defined join, source filter, number of sorted ports and select distinct setting of the source qualifier

Page 7: 4 informatica transformation types sq and exp

Joining source data

Source qualifier can be used to join multiple relational tables provided they are from same databaseJoiner Transformation is used if the sources are heterogeneous or flat filesDefault join is inner equijoin based on related keys in each table

Page 8: 4 informatica transformation types sq and exp

Custom Join

Override the default join when:– Columns do not have primary-foreign key

relationship– Datatypes of columns used for join do not match– Specify different type of join such as outer join

Create primary foreign key relationship in Source Analyzer to join the two table in Source qualifier

Page 9: 4 informatica transformation types sq and exp

Specifying Source Qualification

Override default SQL QueryEnter User defined JoinOuter Join – Left & RightCombine multiple joins in a source qualifier in following order

– Normal– Left Outer– Right Outer

Entering a Source filterSorting the source dataSelect DistinctAdding Pre and Post session SQL commands

Page 10: 4 informatica transformation types sq and exp

Two tables from Oracle Source

Page 11: 4 informatica transformation types sq and exp

Properties

Page 12: 4 informatica transformation types sq and exp

User Defined Joins

Page 13: 4 informatica transformation types sq and exp

Connected

Passive

Expression

Expression is used to calculate values in a single row before writing to the target.

Adjust Employee salariesConcatenate first and last namesConvert string to numbers (Phone N0. 932-1123-6789)Test conditional statements before passing data (Set output port for delayed payment etc.)

Page 14: 4 informatica transformation types sq and exp

Ports

Input or Input-output ports – For each value used in expression

Output ports– Return value for the output port matches the

return value of expression– Multiple Expressions using same set of Input data

will have multiple Output ports for generating results

Page 15: 4 informatica transformation types sq and exp

Example: Single Output Port

Input port– Unit Price– Units ordered

Expression– Unit Price * Units Ordered

Output Port– Total value of order

Page 16: 4 informatica transformation types sq and exp

Example: Multiple Output Port

Input port– Employee Salary– Grade

Expression– Income Tax Formula– PF

Output Port– Income Tax amount– PF Amount

Page 17: 4 informatica transformation types sq and exp

Expression Transformation-Creation

Page 18: 4 informatica transformation types sq and exp

Name

Page 19: 4 informatica transformation types sq and exp

Transformation Created

Page 20: 4 informatica transformation types sq and exp

Edit Transformation

Page 21: 4 informatica transformation types sq and exp

Add Ports

Page 22: 4 informatica transformation types sq and exp

Configure Ports

Page 23: 4 informatica transformation types sq and exp

Add Expression to Port

Page 24: 4 informatica transformation types sq and exp

Validate Expression

Page 25: 4 informatica transformation types sq and exp

Transformation Properties

Page 26: 4 informatica transformation types sq and exp

Expression Transformation Creation Complete

Page 27: 4 informatica transformation types sq and exp

Create Mapping to use Expression Transformation (Add Source & Targets)

Page 28: 4 informatica transformation types sq and exp

Drag Expression Transformation

Page 29: 4 informatica transformation types sq and exp

Link Ports (Manually and by Autolink)

Page 30: 4 informatica transformation types sq and exp

Validate Mapping

Page 31: 4 informatica transformation types sq and exp

Mapping Validation Result

Page 32: 4 informatica transformation types sq and exp

Save Mapping

Page 33: 4 informatica transformation types sq and exp

Run Mapping in Debugger

Page 34: 4 informatica transformation types sq and exp

Functions for Expression

Page 35: 4 informatica transformation types sq and exp

Special Functions

Page 36: 4 informatica transformation types sq and exp

Expression Transformation Exercise

Use expression Transformation to populate Product price (Order Amt / Quantity)If Order Amt > 10000 insert discount cd=1 else 0