Sie sind auf Seite 1von 19

OLTP Table Name Col Name Data type

ProductMaster PID int


Name varchar(40)
Price money

CategoryID smallint
Primary Key OLAP Table Name Col Name
Yes DimProduct ProductKey
No ProductName
No ProductPrice

No CategoryName
Data type Primary Key
int Yes
varchar(40) No
money No

varchar(50) No
ETL Business Rule

Lookup StageCategoryMaster based on CaegoryID and Get


CategoryName insert into DimProduct
OLTP Table Name Col Name Data type
CustomerMaster CID int
Name varchar(40)
City varchar(50)
Primary Key OLAP Table Name Col Name
Yes DimCustomer CustomerKey
No CustomerName
No
Data type Primary Key
int Yes
varchar(40) No
ETL Business Rule

Remove this City Column


OLTP Table Name Col Name Data type
Primary Key OLAP Table Name Col Name
DimTime DateKey
FullDate
YearNo
SemNo
QtrNo
MonthNo
WeekNo
DayNo
EngMonthName
TelMonthName
Data type Primary Key
int Yes
datetime No
int No
Tinyint No
Tinyint No
Tinyint No
Tinyint No
Tinyint No
Varchar(10) No
Varchar(20) No
ETL Business Rule
OLTP Table Name Col Name Data type Primary Key
OLAP Table Name Col Name Data type
DimLocation LocationKey int
Country varchar(50)
State varchar(30)

City varchar(20)
Primary Key ETL Business Rule
Yes
No
No
Look up on City and get the LocationKey and
No Insert into FactSales tables
OLTP Table Name Col Name Data type
Sales PID int
CID int

SaleDate datetime
QtySold int
SalesAmount money

DeliveryDate datetime
Primary Key OLAP Table Name Col Name
No FactSales ProductKey
No CustomerKey

No SaleDateKey
No QtySold
No SalesAmount

No DeliveryDateKey

LocationKey
Data type Primary Key
int No
int No

int
int No
money No

datetime No

int No
ETL Business Rule

Lookup DimTime table based on FullDate and Get DateKey and insert
this into SaleDateKey

Lookup DimTime table based on FullDate and Get DateKey and insert
this into DeliveryDateKey
Lookup DimLocation table based on City from StageCustomerMaster
and Get LocationKey and insert this into LocationKey in FactSales
table