powercenter level1 unit06

11
1 Unit 6. Lookups and Reusable Transformations Unit 6

Upload: christian-acosta

Post on 09-Apr-2016

4 views

Category:

Documents


3 download

DESCRIPTION

Presentation of PowerCenter Level 1 Labs Unit06

TRANSCRIPT

Page 1: PowerCenter Level1 Unit06

1

Unit 6. Lookups and Reusable Transformations

Unit 6

Page 2: PowerCenter Level1 Unit06

2

Unit Objectives

• Understand when and how to use:• Lookup transformation• Reusable transformations

• Use these in a mapping

Unit 6

Page 3: PowerCenter Level1 Unit06

3

Lookup Functionality

Lookup Source

Lookup Transformation

Output with Lookup values

Input value

Input value

Lookup value(s)

Lookup condition:ITEM_ID = IN_ITEM_IDPRICE <= IN_PRICE

Unit 6

Page 4: PowerCenter Level1 Unit06

4

Lookup Transformation

Passive

Ports• Mixed• Check O column for

lookup values required

Usage:• Returns related values

(or else nulls)

Returns values from a database table or flat file associated with a given input value

Specify lookup condition

Unit 6

Page 5: PowerCenter Level1 Unit06

5

Lookup Transformation Properties

Unit 6

Page 6: PowerCenter Level1 Unit06

6

Reusable Transformations

• Create in Transformation Developer

• Or create in Mapping Designer and ‘promote’

• Listed in Transformations node of navigator

• Drag and drop into any mapping

Unit 6

Page 7: PowerCenter Level1 Unit06

7

Unit 6 Lab A Load Employee Staging Table

employees_central.txt,employees_east.txt,employees_west.txt(flat files)

STG_EMPLOYEES(Oracle table)

salaries.txt

Lookup

Create a mapping using:• Lookup transformation• Reusable Expression transformation

Create/run a workflow for this mapping using a file list

StagingAreaSources

Unit 6

Page 8: PowerCenter Level1 Unit06

8

Lab A Review

• What did we accomplish with these labs?

• Questions?

Unit 6

Page 9: PowerCenter Level1 Unit06

9

Unit 6 Lab B Load Dates Staging Table

Create a mapping using an Expression transformation with:• Date function• Variable ports

Create/run a workflow for this mapping

dates.txt (flat file)

STG_DATES(table)

Source StagingArea

Unit 6

Page 10: PowerCenter Level1 Unit06

10

Lab B Review

• What did we accomplish with these labs?

• Questions?

Unit 6

Page 11: PowerCenter Level1 Unit06

11

Unit 6 Quiz

1. When would you use the Lookup transformation?

2. What is a Lookup condition?

Unit 6