You are on page 1of 1

AdventureWorks 2008 Data Warehouse Schema

Samples and Sample Databases at


Rev 10.00.0003
http://CodePlex.com/SqlServerSamples

AdventureWorksDWBuildVersion DatabaseLog DimSalesReason FactInternetSalesReason FactInternetSales DimCustomer


dbo ProspectiveBuyer
PK SalesReasonKey PK,FK2 SalesOrderNumber SalesOrderNumber PK CustomerKey
PK,FK2 SalesOrderLineNumber SalesOrderLineNumber
PK ProspectiveBuyerKey
DBVersion DatabaseLogID SalesReasonAlternateKey PK,FK1 SalesReasonKey FK1,I1 GeographyKey
VersionDate PostTime SalesReasonName FK2,I5 ProductKey FactSurveyResponse U1 CustomerAlternateKey
ProspectAlternateKey
DatabaseUser SalesReasonType FK3,I4 OrderDateKey Title
PK SurveyResponseKey FirstName
Event FK4,I3 DueDateKey FirstName
DimReseller MiddleName
Schema FK5,I7 ShipDateKey MiddleName
DateKey LastName
Object FK1,I2 CustomerKey PK ResellerKey LastName
CustomerKey BirthDate
TSQL FK7 PromotionKey NameStyle
ProductCategoryKey MaritalStatus
XmlEvent FK6 CurrencyKey FK1 GeographyKey BirthDate
EnglishProductCategoryname Gender
FK8 SalesTerritoryKey U1 ResellerAlternateKey MaritalStatus
ProductSubCategoryKey EmailAddress
RevisionNumber Phone Suffix
EnglishProductSubcategoryName YearlyIncome
OrderQuantity BusinessType Gender
TotalChildren
UnitPrice ResellerName EmailAddress
NumberChildrenAtHome
ExtendedAmount NumberEmployees YearlyIncome
DimAccount Education
UnitPriceDiscountPct OrderFrequency TotalChildren
Occupation
PK AccountKey DiscountAmount OrderMonth DimGeography NumberChildrenAtHome
HouseOwnerFlag
ProductStandardCost FirstOrderYear EnglishEducation
NumberCarsOwned
FK1 ParentAccountKey TotalProductCost LastOrderYear PK GeographyKey SpanishEducation
AddressLine1
U1 AccountCodeAlternateKey SalesAmount ProductLine FrenchEducation
AddressLine2
ParentAccountCodeAlternateKey TaxAmt AddressLine1 City EnglishOccupation
City
AccountDescription Freight AddressLine2 StateProvinceCode SpanishOccupation
StateProvinceCode
AccountType CarrierTrackingNumber AnnualSales StateProvinceName FrenchOccupation
PostalCode
Operator CustomerPONumber BankName CountryRegionCode HouseOwnerFlag
Phone
CustomMembers MinPaymentType EnglishCountryRegionName NumberCarsOwned
Salutation
ValueType MinPaymentAmount SpanishCountryRegionName AddressLine1
Unknown
CustomMemberOptions AnnualRevenue FrenchCountryRegionName AddressLine2
YearOpened PostalCode Phone
FK1 SalesTerritoryKey DateFirstPurchase
CommuteDistance

DimCurrency DimProduct

PK CurrencyKey PK ProductKey
DimPromotion
U1 CurrencyAlternateKey U1 ProductAlternateKey
DimDepartmentGroup PK PromotionKey FK1,I1 ProductSubCategoryKey
CurrencyName
WeightUnitMeasureCode
PK DepartmentGroupKey U1 PromotionAlternateKey SizeUnitMeasureCode
EnglishPromotionName EnglishProductName
FK1 ParentDepartmentGroupKey SpanishPromotionName SpanishProductName
DepartmentGroupName FrenchPromotionName FrenchProductName
DiscountPct StandardCost DimEmployee
EnglishPromotionType FinishedGoodsFlag
SpanishPromotionType Color PK EmployeeKey
FactCurrencyRate FrenchPromotionType SafetyStockLevel
EnglishPromotionCategory ReorderPoint FK1,I1 ParentEmployeeKey
DimScenario FK1 CurrencyKey SpanishPromotionCategory EmployeeNationalIDAlternateKey
ListPrice
FK2 DateKey FrenchPromotionCategory ParentEmployeeNationalIDAlternateKey
PK ScenarioKey Size
FactResellerSales StartDate FK2,I2 SalesTerritoryKey
SizeRange
AverageRate EndDate FirstName
ScenarioName SalesOrderNumber Weight
EndOfDayRate MinQty LastName
SalesOrderLineNumber DaysToManufacture
MaxQty ProductLine MiddleName
FK1,I5 ProductKey DealerPrice NameStyle
FK2,I4 OrderDateKey Class Title
FK3,I3 DueDateKey Style HireDate
FK4,I7 ShipDateKey ModelName BirthDate
FK8 ResellerKey LargePhoto LoginID
FK6 PromotionKey EnglishDescription EmailAddress
FK5 CurrencyKey FrenchDescription Phone
FactFinance FK7 SalesTerritoryKey ChineseDescription MaritalStatus
RevisionNumber ArabicDescription EmergencyContactName
PK FinanceKey DimDate HebrewDescription DimSalesTerritory EmergencyContactPhone
OrderQuantity
UnitPrice ThaiDescription SalariedFlag
FK5 DateKey PK DateKey PK SalesTerritoryKey Gender
ExtendedAmount GermanDescription
FK3 OrganizationKey UnitPriceDiscountPct JapaneseDescription PayFrequency
FK2 DepartmentGroupKey U1 FullDateAlternateKey U1 SalesTerritoryAlternateKey BaseRate
DayNumberOfWeek DiscountAmount TurkishDescription
FK4 ScenarioKey SalesTerritoryRegion VacationHours
EnglishDayNameOfWeek ProductStandardCost U1 StartDate
FK1 AccountKey SalesTerritoryCountry SickLeaveHours
SpanishDayNameOfWeek TotalProductCost EndDate
Amount SalesTerritoryGroup CurrentFlag
FrenchDayNameOfWeek SalesAmount Status
FK1 GeographyKey SalesPersonFlag
DayNumberOfMonth TaxAmt
Freight DepartmentName
DayNumberOfYear StartDate
EnglishMonthName CarrierTrackingNumber
CustomerPONumber EndDate
SpanishMonthName Status
FrenchMonthName
WeekNumberOfYear
MonthNumberOfYear DimProductSubcategory DimProductCategory
DimOrganization
CalendarQuarter PK ProductCategoryKey FactSalesQuota
PK OrganizationKey PK ProductSubCategoryKey
CalendarYear
CalendarSemester U1 ProductCategoryAlternateKey PK SalesQuotaKey
FK1 ParentOrganizationKey U1 ProductSubCategoryAlternateKey
FiscalQuarter EnglishProductCategoryName
PercentageOfOwnership EnglishProductSubCategoryName
FiscalYear SpanishProductCategoryName FK1,I1 EmployeeKey
OrganizationName SpanishProductSubCategoryName
FiscalSemester FrenchProductCategoryName FK2,I2 DateKey
CurrencyKey FrenchProductSubCategoryName
CalendarYear
FK1 ProductCategoryKey
CalendarQuarter
SalesAmountQuota

You might also like