LAB: Learn Join Using Source Qualifier

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

LAB : Learn Join Using Source Qualifier www.Info-Etl.

com
Homogeneous Join: Using Source Qualifier (Source 1: Relational DB table, Source 2: DB Table, Target 1: DB Table) -----------------------------------------------------------------------------------------------------------Source 1: Relational Table Table Name: CUSTOMER Columns: CUST_ID CUST_F_NAME CUST_L_NAME Source 2: Relational Table

Table Name: CUSTOMER_ADDRESS Columns: CUST_ID CUST_ADD ------------------------------------------------------------------------------------------------------------

Target 1: Relational Table Table Name: CUSTOMER_DETAILS Columns: CUSTOMER_NAME CUSTOMER_ADD ------------------------------------------------------------------------------------------------------------

Instructions: 1. Customer full name need to be generated by concatenating first name & last name 2. Customer Id need to be used as primary key to join over riding SQL in source qualifier.

Steps for Mapping


Step1. In Source Analyzer, import Source 1: Customer table.

Press CTRL + S to save.

Step 2: Import Source 2: CUSTOMER_ADDRESS

Press CTRL + S to save.

Step3 Import Target 1: Customer details

Press CTRL + S to save.

Step 4: Create a new mapping

Give appropriate name.

Drag the two sources into mapping designer. Press CTRL+S too keep saving your work

Now remove any one source qualifier and link the ports of source to other source qualifier as in this mapping we will be using one source qualifier only to join. From source qualifier drag all ports to an expression. Double click on source qualifier and use user defined join to mention the condition for join.

Step 5: Use Expression transformation to concatenate the first name & last name.

Step 6 : Drag target into mapping designer & drag ports from expression to respective port in target.

Our mapping is done.

Create session, workflow and Run. Note session log for any error.

Check the target Table

WWW.Info-Etl.com

You might also like