Professional Documents
Culture Documents
Basic Lookup
8-1
Lab at a Glance
The exercises in this lab are designed to walk the student
through the process of using a Lookup transformation.
Objectives
After completing the lab, the student will be able to use a
Lookup transformation.
Summary
The purpose of this lab is to load an ODS table with records for
only those customers who have one or more completed, noncancelled, invoices on record.
The data will be extracted from the INVOICE table. The
CUSTOMER table will be used as the lookup table. The data
will be loaded into a target table called
ODS_CUSTOMER_ACTIVE.
SOURCE: INVOICE
TARGET: ODS_CUSTOMER_ACTIVE
The completed mapping should look as follows:
Duration
This lab should take approximately 40 minutes.
8- 2
Exercises
Exercise 1: Create the Mapping
Step 1. Import the source table.
Clear the Source Analyzer workspace (right-click
anywhere in the workspace and select Clear A ll).
Continue to work in the assigned student folder and
import the INVOICE relational source table from the SDBU
database schema.
The source should look as follows:
8-3
Expand the SDBU schema and TA BLES node, and select the
CUSTOMER table:
8-5
A dd a new
8- 6
the lkp_CUSTOMER to
ODS_CUSTOMER_A CTIVE :
A utolink by name
8-7
Edit Tasks
dialog
SQ_INVOICE.
, select
8- 8
8-9
8- 10