P. 1
Informatica PowerCenter 9.0 Transformation Guide

Informatica PowerCenter 9.0 Transformation Guide

|Views: 11,812|Likes:
Published by Dipankar

More info:

Published by: Dipankar on Sep 24, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/03/2014

pdf

text

original

When you join related tables in one Source Qualifier transformation, the Integration Service joins the tables based
on the related keys in each table.

Joining Source Data 327

This default join is an inner equijoin, using the following syntax in the WHERE clause:

Source1.column_name = Source2.column_name

The columns in the default join must have:

¨A primary key-foreign key relationship

¨Matching datatypes

For example, you might see all the orders for the month, including order number, order amount, and customer
name. The ORDERS table includes the order number and amount of each order, but not the customer name. To
include the customer name, you need to join the ORDERS and CUSTOMERS tables. Both tables include a
customer ID, so you can join the tables in one Source Qualifier transformation.

The following figure shows joining two tables with one Source Qualifier transformation:

When you include multiple tables, the Integration Service generates a SELECT statement for all columns used in
the mapping. In this case, the SELECT statement looks similar to the following statement:

SELECT CUSTOMERS.CUSTOMER_ID, CUSTOMERS.COMPANY, CUSTOMERS.FIRST_NAME, CUSTOMERS.LAST_NAME,
CUSTOMERS.ADDRESS1, CUSTOMERS.ADDRESS2, CUSTOMERS.CITY, CUSTOMERS.STATE, CUSTOMERS.POSTAL_CODE,
CUSTOMERS.PHONE, CUSTOMERS.EMAIL, ORDERS.ORDER_ID, ORDERS.DATE_ENTERED, ORDERS.DATE_PROMISED,
ORDERS.DATE_SHIPPED, ORDERS.EMPLOYEE_ID, ORDERS.CUSTOMER_ID, ORDERS.SALES_TAX_RATE, ORDERS.STORE_ID
FROM CUSTOMERS, ORDERS
WHERE CUSTOMERS.CUSTOMER_ID=ORDERS.CUSTOMER_ID

The WHERE clause is an equijoin that includes the CUSTOMER_ID from the ORDERS and CUSTOMER tables.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->