powercenter level1 unit06
DESCRIPTION
Presentation of PowerCenter Level 1 Labs Unit06TRANSCRIPT
![Page 1: PowerCenter Level1 Unit06](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/1.jpg)
1
Unit 6. Lookups and Reusable Transformations
Unit 6
![Page 2: PowerCenter Level1 Unit06](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/2.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/3.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/5.jpg)
5
Lookup Transformation Properties
Unit 6
![Page 6: PowerCenter Level1 Unit06](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/6.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/7.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/8.jpg)
8
Lab A Review
• What did we accomplish with these labs?
• Questions?
Unit 6
![Page 9: PowerCenter Level1 Unit06](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/9.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/10.jpg)
10
Lab B Review
• What did we accomplish with these labs?
• Questions?
Unit 6
![Page 11: PowerCenter Level1 Unit06](https://reader035.vdocument.in/reader035/viewer/2022080304/563db922550346aa9a9a61cb/html5/thumbnails/11.jpg)
11
Unit 6 Quiz
1. When would you use the Lookup transformation?
2. What is a Lookup condition?
Unit 6