Sie sind auf Seite 1von 2

S o u r c e s

Xfo r m s

Ta r g e ts

Sales.Individual

Sales.Individual Person.Contact, Person.Address, Person.StateTerritory, Person.CountryRegion

Person.Contact,

Person.Address,

Person.StateTerritory,

Person.CountryRegion

Sales.Customer WHERE CustomerType= ’I’

Sales.Customer WHERE CustomerType=’I’

Sales.Customer WHERE CustomerType= ’I’
Sales.Customer WHERE CustomerType= ’I’

· Lookup to Contact, Address, State, and Country (Outer Join)

· Lookup to Sales.Individual for Demographics info (outer join)

· Combine names to FullName

· CustomerIDName

· Shred Sales.Individual. Demographics XML

· Populate “Store” columns with default values (“None”)

· Decode Gender (M/F) to Male/ Female

· Decode Marital Status (M/S) to Married/Single

· Decode HomeOwnerFlag (0/1)

· Customer Value Score – “Unknown” for now

· Row auditing metadata

· SCD (2,1)

Sales.SalesTerritory

Sales.Store

Person.Contact,

Person.Address,

Person.StateTerritory,

Person.CountryRegion

Sales.Customer WHERE CustomerType= ’S’

Sales.Customer WHERE CustomerType=’S’

Sales.Customer WHERE CustomerType= ’S’
Sales.Customer WHERE CustomerType= ’S’

· Identify FIRST Contact for contact info

· Lookup to Contact, Address, State, and Country (Outer Join)

· Lookup to Sales.Store for Demographics info (outer join)

· Combine Contact names for

FullName

· CustomerIDName = AcctNum + StoreName

· Shred Sales.Store. Demographics

XML

· Populate “Individual” columns with

default values (“None”)

· Row auditing metadata

· SCD (2,1)

DimCustomer
DimCustomer
DimCustomer
DimCustomer
DimCustomer
DimCustomer
DimCustomer
DimCustomer

DimCustomer

DimCustomer
DimCustomer
DimCustomer

Adventure Works Cycles High Level ETL Map: Dimensions

Dates

spreadsheet

DimDate

Person. Contact HR. Employee + · Lookup name from Person.Contact · Self-join to pick up
Person.
Contact
HR.
Employee
+
·
Lookup name from
Person.Contact
·
Self-join to pick up
Manager Info

· Lookup Department and DepartmentGroup

· Lookup Sales Territory for sales reps

· Decode and replace NULLs for gender, marital status, IsCurrentEmployee, IsSalesPerson

· Construct EmployeeIDName

· Row auditing

metadata

· SCD (2,1)

DimEmploye

e

Sales. SalesReason · Add row for Reseller sales
Sales.
SalesReason
· Add row for
Reseller sales

· Populate

Reseller sales row with

“Reseller”

·

Set Channel =

’Internet’ for individual sales

· Row auditing

metadata

· SCD (1)

Dim

OrderInfo

Subcategory, Category, Model + Production. Product
Subcategory,
Category,
Model
+
Production.
Product

·

Lookup for

Subcategory,

Category, and Model

·

Replace NULL

values for

ProductLine, Class,

Style, Size,

SizeUnitOfMeasure,

WeightUnitOfMeasur

e

· Decode

FinsihedGood

· Calculate Product

CurrentStatus

· Row auditing

metadata

· SCD (1)

DimProduct

Sales.

Sales.

SpecialOffer

SpecialOffer

Sales. SpecialOffer
Sales. SpecialOffer

· NULL

MaxQty to

max integer

· Row auditing

metadata

· SCD (1)

DimPromotio

n

S o u r c e s

Xfo r m s

Ta r g e ts

Sales.SalesOrderHeaderSa

lesReason

Sales.SalesOrderDetail

Sales.SalesOrderHeader

Sales.SalesOrderHeader

Sales.SalesOrderHeader
Sales.SalesOrderHeader

· Inner join OK between header & detail RI enforced in source system

· Reasonableness checks: At least 100,000 rows; 10,000 customers; and 100 products

· Allocate tax and freight (based on line item contribution to total order)

· Lookup currency rate for each order date

· Calculate sales amounts for local currency (in addition to USD)

· Surrogate key pipeline: Product, Order Date, Due Date, Promotion, Currency, Employee (Sales Rep), Order Info

· Surrogate key pipeline: Customer (requires historical SCD2 handling)

· Row auditing metadata

FactOrders

Adventure Works Cycles High Level ETL Map: Facts

Sales.CurrencyRate

Sales.CurrencyRate

Sales.CurrencyRate
Sales.CurrencyRate

· Reasonableness checks:

· At least 10,000 rows

· At least 10 currencies

· Surrogate key pipeline: for Date and Currency

· Row auditing metadata

FactExchangeRates
FactExchangeRates
FactExchangeRates
FactExchangeRates
FactExchangeRates

FactExchangeRates