You are on page 1of 2

Informatica Test Case – 2 – Sales Report Table

1. The objective of this case study is to –


a. Create an Informatica mapping by joining multiple source systems.
b. Learn to perform connected and unconnected lookups.
2. Run the attached SQL file to create the tables.
3. Import all the newly created tables as sources in your repository.
4. Import the table SALES_REPORT as a target in your repository.
5. The fields and their sources have been defined below.

Target Field Source Table Source Field Mapping Rule / Join Condition
SALES_REPORT_ID A surrogate key to the table based o
INVOICE_DATE SALES INVOICE_DATE CUSTOMER.CUST_ID = SALES.CUST_ID
CUST_FULL_NAME CUSTOMER FIRST_NAME, The fields should be concatenated as
LAST_NAME “LAST_NAME, FIRST NAME”
CUST_AGE_GROUP AGE_GROUP AGE_RANGE Check to see if customer’s age falls under
the range specified and then assign the
appropriate age group.
CUSTOMER_COUNTRY COUNTRY COUNTRY CUSTOMER.CITY_ID=CITY.CITY_ID AND
CITY.REGION_ID = REGION.REGION_ID AND
REGION.COUNTRY_ID =
COUNTRY.COUNTRY_ID
SALES_PERSON SALES_PERSON SALES_PERSON CUSTOMER.SALES_ID =
SALES_PERSON.SALES_ID
RESERVATION_DATE RESERVATIONS RES_DATE CUSTOMER.CUST_ID =
RESERVATIONS.CUST_ID
NUMBER_OF_DAYS RESERVATION_LINE RES_DAYS CUSTOMER.CUST_ID =
RESERVATIONS.CUST_ID
AND
RESERVATIONS.RES_ID =
RESERVATION_LINE.RES_ID
RESORT RESORT RESORT CUSTOMER.CUST_ID =
RESERVATIONS.CUST_ID
AND
RESERVATIONS.RES_ID =
RESERVATION_LINE.RES_ID
AND
RESERVATION_LINE.SERVICE_ID =
SERVICE.SERVICE_ID
AND
SERVICE_LINE.SL_ID = SERVICE.SL_ID
AND SERVICE_LINE.RESORT_ID =
RESORT.RESORT_ID
RESORT_COUNTRY CUSTOMER.CUST_ID =
RESERVATIONS.CUST_ID
AND
RESERVATIONS.RES_ID =
RESERVATION_LINE.RES_ID
AND
RESERVATION_LINE.SERVICE_ID =
SERVICE.SERVICE_ID
AND
SERVICE_LINE.SL_ID = SERVICE.SL_ID
AND SERVICE_LINE.RESORT_ID =
RESORT.RESORT_ID
AND RESORT.COUNTRY_ID =
COUNTRY.COUNTRY_ID
COST SERVICE.PRICE * INVOICE_LINE.DAYS
LOAD_DATE SYSDATE
EFFECTIVE_DATE Passed from Parameter File

6. The assumption for this mapping is that the data is always incremental. The driver for the mapping is the
SALES table. The goal is to be able to create a de-normalized table by doing lookups and joins to all the
tables.

You might also like