0% found this document useful (0 votes)
57 views12 pages

LAB: Learn Join Using Source Qualifier

This document provides instructions for performing a homogeneous join between two database tables using a source qualifier in an ETL tool. It describes joining a customers table with a customer addresses table to output a customer details table with the full customer name and address. The steps involve importing the source tables, creating a mapping with a source qualifier using a user defined join on the customer ID, concatenating the first and last names in an expression, mapping the output to the target table, and running and checking the results.

Uploaded by

alsamixers
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views12 pages

LAB: Learn Join Using Source Qualifier

This document provides instructions for performing a homogeneous join between two database tables using a source qualifier in an ETL tool. It describes joining a customers table with a customer addresses table to output a customer details table with the full customer name and address. The steps involve importing the source tables, creating a mapping with a source qualifier using a user defined join on the customer ID, concatenating the first and last names in an expression, mapping the output to the target table, and running and checking the results.

Uploaded by

alsamixers
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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