4 informatica transformation types sq and exp
DESCRIPTION
informatica transformationTRANSCRIPT
![Page 1: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/1.jpg)
Transformation Types
![Page 2: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/2.jpg)
Transformation Types
Source QualifierExpressionAggregatorSorterFilterJoinerLookupUpdate StrategyRouterSequence GeneratorUnionUnstructured dataTransaction Control
![Page 3: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/3.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/4.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/5.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/6.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/7.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/8.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/9.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/10.jpg)
Two tables from Oracle Source
![Page 11: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/11.jpg)
Properties
![Page 12: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/12.jpg)
User Defined Joins
![Page 13: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/13.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/14.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/15.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/16.jpg)
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](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/17.jpg)
Expression Transformation-Creation
![Page 18: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/18.jpg)
Name
![Page 19: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/19.jpg)
Transformation Created
![Page 20: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/20.jpg)
Edit Transformation
![Page 21: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/21.jpg)
Add Ports
![Page 22: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/22.jpg)
Configure Ports
![Page 23: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/23.jpg)
Add Expression to Port
![Page 24: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/24.jpg)
Validate Expression
![Page 25: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/25.jpg)
Transformation Properties
![Page 26: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/26.jpg)
Expression Transformation Creation Complete
![Page 27: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/27.jpg)
Create Mapping to use Expression Transformation (Add Source & Targets)
![Page 28: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/28.jpg)
Drag Expression Transformation
![Page 29: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/29.jpg)
Link Ports (Manually and by Autolink)
![Page 30: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/30.jpg)
Validate Mapping
![Page 31: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/31.jpg)
Mapping Validation Result
![Page 32: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/32.jpg)
Save Mapping
![Page 33: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/33.jpg)
Run Mapping in Debugger
![Page 34: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/34.jpg)
Functions for Expression
![Page 35: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/35.jpg)
Special Functions
![Page 36: 4 informatica transformation types sq and exp](https://reader034.vdocuments.net/reader034/viewer/2022052307/557ace25d8b42a2c0f8b4e16/html5/thumbnails/36.jpg)
Expression Transformation Exercise
Use expression Transformation to populate Product price (Order Amt / Quantity)If Order Amt > 10000 insert discount cd=1 else 0