Sunday, 30 March 2014

Source Qualifier Transformation in Informatica

Source Qualifier Transformation in Informatica
The source qualifier transformation is an active,connected transformation used to represent the rows that the integrations service reads when it runs a session. You need to connect the source qualifier transformation to the relational or flat file definition in a mapping. The source qualifier transformation converts the source data types to the Informatica native data types. So, you should not alter the data types of the ports in the source qualifiertransformation.

The source qualifier transformation is used to do the following tasks:
  • Joins: You can join two or more tables from the same source database. By default the sources are joined based on the primary key-foreign key relationships. This can be changed by explicitly specifying the join condition in the "user-defined join" property.
  • Filter rows: You can filter the rows from the source database. The integration service adds a WHERE clause to the default query.
  • Sorting input: You can sort the source data by specifying the number for sorted ports. The Integration Service adds an ORDER BY clause to the default SQL query
  • Distinct rows: You can get distinct rows from the source by choosing the "Select Distinct" property. The Integration Service adds a SELECT DISTINCT statement to the default SQL query.
  • Custom SQL Query: You can write your own SQL query to do calculations.

Creating Source Qualifier Transformation:

The easiest method to create a source qualifier transformation is to drag the source definition in to a mapping. This will create the source qualifier transformation automatically.

Follow the below steps to create the source qualifier transformation manually.
  • Click Transformation -> Create.
  • Select the Source Qualifier transformation.
  • Enter a name for the transformation
  • Click on create.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNKhtJEIquU4Y4eSNgFcn45Za5qDhdK-SFVxJIGn3kNYqFFzmz-fxIpnPsYAD-QBpkmivP7rYw9247Xz0pUbTypTu_urKHd59MNTfeWRc-Mzhaq19seVSn1I_YNeb3OiGs92_7-NsedDo/s320/SQ_Create.jpg
  • Select a source, click OK and then click Done.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLS2yKOU93mOcMzyTI_5IvzC2VbygZBRotPWAadzCkFJMDaIkY2fnOztaESRw1Rz0ShWrWjVz2LOMh4t7aE2SIgMqDJKfuqYHjUweJbZSmheeZdAhnsWjSgbADpPXatEmU5fab6n4Y5us/s320/SQ_Select.jpg

Now you can see in the below image how the source qualifier transformation is connected to the source definition.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOBFc5u1wD78WcmFa499u14IeIouScrTrxB8p6KuY5g9mnh8tLIpORscKcZvbsP4ZjOzwqYy3RzN2zsg6fft9YAPYcosaeKrdNwTcorkax6CaJKN1GoNiHrExjfC75T5G6VQs4FSomHH8/s320/SQ_connect_to_source.jpg

Source Qualifier Transformation Properties:

We can configure the following source qualifier transformation properties on the properties tab. To go to the properties tab, open the source qualifier transformation by double clicking on it and then click on the properties tab.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJgmULnx075VT2jcLVatJCSMx3k8ZI7cYaF_WkG65AeYcVmHChGo2mZ723UlfCuhEdKiO6MSjzPIAaS3kgjNxtPz4aXQnUJtKsX2Xiz62ScB-ZwOaXoemiaDb-tfscpJ7zW6S2fE9x7DE/s320/SQ_Properties.jpg

Property
Description
SQL Query
To specify a custom query which replaces the default query.
User-Defined Join
Condition used for joining multiple sources.
Source Filter
Specifies the filter condition the Integration Service applies when querying rows.
Number of Sorted Ports
Used for sorting the source data
Tracing Level
Sets the amount of detail included in the session log when you run a session containing this transformation.
Select Distinct
To select only unique rows from the source.
Pre-SQL
Pre-session SQL commands to run against the source database before the Integration Service reads the source.
Post-SQL
Post-session SQL commands to run against the source database after the Integration Service writes to the target.
Output is Deterministic
Specify only when the source output does not change between session runs.
Output is Repeatable
Specify only when the order of the source output is same between the session runs.

Note: For flat file source definitions, all the properties except the Tracing level will be disabled.

2 comments:

  1. The source qualifier transformation is an active,informatica online training in hyderabad


    connected transformation used to represent the rows that the integrations service reads

    ReplyDelete
  2. Useful Information :

    Looking for the Best [url= Digital Marketing in Vijayawada ][/url] , We provide training on live projects, internship, Flexible Classes, Free Demo @ praiseads.com

    ReplyDelete