Beruflich Dokumente
Kultur Dokumente
This document is a template for creating ETL Mapping documents. This document describes the
mapping requirements for populating a new Employee table using data from a fictitious database.
A report is required that provides information on each employee's actual hourly rate versus the
agreed hourly rate. Actual hours will be calculated using the employee's salary and the number of
actual hours worked by each employee for a given year.
2 Source Definition
Current employees of a given type are to be processed. If the employee type is not supplied, all
employees are processed.
The EMP table is used as the main driving table. Records matching the following criteria are
extracted:
END_DATE is NULL
EMP_TYPE_ID = <specified or All>
N.B. param – indicates values that are passed into the job
2.2 TABLE RELATIONS
Table Card* Join Card* Table
EMP 1 EMP_ID=EMP_ID 1..n POS
EMP 1 EMP_ID=EMP_ID 0..n LEAVE
LEAVE_ID=TYPE_ID
EMP 0..n EMP_TYPE_ID=TYPE_ID 1 EMP_TYPE
LEAVE 0..n LEAVE_ID=TYPE_ID 1 LEAVE_TYPE
* Card = Cardinality
3 Target Definition
Schema: REPORTS
Table Name: Employees
Column Name Data Type Mapping Rule Description
LAST_NAME CHAR(30) R1 Employee's Last Name
FIRST_NAME CHAR(30) R1 Employee's First Name
MIDDLE_NAME CHAR(30) R1 Employee's Middle Name
START_DATE CHAR(30) R2 (EMP.START_DATE) Employee's start date
END_DATE CHAR(30) R2 (EMP.END_DATE) Employee's end date – null
if current
POSITION CHAR(30) POS.POSITION Position Name
LEAVE_HOURS NUMBER(9 R3 Number of hours leave
,2)
EFFECTIVE_HOURLY_R NUMBER(9 R4 Employee's hourly rate
ATE ,2)
4 Mapping Rules