Sie sind auf Seite 1von 2

Sales.

SalesTerritory
Adventure Works Cycles
s
ce
High Level ETL Map: Dimensions
ur
So

Sales.Individual Sales.Store

Person.Contact, Person.Contact,
Subcategory,
Person.Address, Person.Address,
+ Person.StateTerritory, Person.StateTerritory,
Category,
Person. Model
Person.CountryRegion Person.CountryRegion
Contact
+ + +
Sales.Customer WHERE Sales.Customer WHERE Dates HR. Sales. Production. Sales.
CustomerType=’I’ CustomerType=’S’ spreadsheet Employee SalesReason Product SpecialOffer

+
· Lookup to Contact, Address, · Identify FIRST Contact for contact
State, and Country (Outer Join) info
· Lookup to Sales.Individual for · Lookup to Contact, Address,
· Add row for
Demographics info (outer join) State, and Country (Outer Join)
Reseller sales
· Lookup to Sales.Store for
· Populate
Demographics info (outer join) · Lookup name from Reseller sales
Person.Contact row with
· Combine names to FullName · Self-join to pick up “Reseller” · Lookup for
· CustomerIDName Manager Info · Set Channel =
s

· Shred Sales.Individual. · Lookup Department Subcategory, · NULL


m

’Internet’ for Category, and Model


Demographics XML · Combine Contact names for MaxQty to
or

and DepartmentGroup individual sales


· Populate “Store” columns with FullName · Lookup Sales Territory · Replace NULL max integer
Xf

default values (“None”) · CustomerIDName = AcctNum + for sales reps values for
StoreName ProductLine, Class,
· Shred Sales.Store. Demographics Style, Size,
· Decode Gender (M/F) to Male/ XML · Decode and replace SizeUnitOfMeasure,
Female · Populate “Individual” columns with NULLs for gender, WeightUnitOfMeasur
· Decode Marital Status (M/S) to default values (“None”) marital status, e
Married/Single IsCurrentEmployee, · Decode
· Decode HomeOwnerFlag (0/1) IsSalesPerson FinsihedGood
· Customer Value Score – “Unknown” · Construct · Calculate Product
for now EmployeeIDName CurrentStatus

· Row auditing · Row auditing · Row auditing · Row auditing


· Row auditing metadata · Row auditing metadata metadata metadata metadata metadata
· SCD (2,1) · SCD (2,1) · SCD (2,1) · SCD (1) · SCD (1) · SCD (1)
ts
ge

DimEmploye Dim DimPromotio


DimCustomer DimDate DimProduct
r

e OrderInfo n
Ta
Adventure Works Cycles
s
ce Sales.SalesOrderHeaderSa
lesReason High Level ETL Map: Facts
ur
So

+
Sales.SalesOrderDetail

Sales.SalesOrderHeader Sales.CurrencyRate

· Inner join OK between header &


detail – RI enforced in source
system
· Reasonableness checks:
· Reasonableness checks: At least
· At least 10,000 rows
100,000 rows; 10,000 customers;
· At least 10 currencies
and 100 products

· Allocate tax and freight (based on


s

line item contribution to total order)


m

· Lookup currency rate for each


or

order date
Xf

· Calculate sales amounts for local


currency (in addition to USD)

· Surrogate key pipeline: Product, Order · Surrogate key pipeline: for Date
Date, Due Date, Promotion, Currency, and Currency
Employee (Sales Rep), Order Info
· Surrogate key pipeline: Customer
(requires historical SCD2 handling)

· Row auditing metadata

· Row auditing metadata


ts
ge

FactOrders FactExchangeRates
r
Ta

Das könnte Ihnen auch gefallen