dbo
dbo
Sales
Sales
Person
Person
Purchasing
Purchasing
Production
Production
HumanResources
HumanResources
AdventureWorks OLTP Schema November 2005
AdventureWorks OLTP Schema
November 2005
Best Print Results if: 11X17 paper Landscape Fit to 1 sheet
Best Print Results if:
11X17 paper
Landscape
Fit to 1 sheet
Address
Address
PK AddressID U2 AddressLine1 U2 AddressLine2 U2 City FK1,U2 S...
PK
AddressID
U2
AddressLine1
U2
AddressLine2
U2
City
FK1,U2
StateProvinceID
U2
PostalCode
U1
rowguid
ModifiedDate
Contact
Contact
PK ContactID NameStyle Title FirstName MiddleName LastName Su...
PK
ContactID
NameStyle
Title
FirstName
MiddleName
LastName
Suffix
EmailAddress
EmailPromotion
Phone
PasswordHash
PasswordSalt
AdditionalContactInfo
U1
rowguid
ModifiedDate
AddressType
AddressType
PK AddressTypeID U1 Name U2 rowguid ModifiedDate
PK
AddressTypeID
U1
Name
U2
rowguid
ModifiedDate
ContactType
ContactType
PK ContactTypeID U1 Name ModifiedDate
PK
ContactTypeID
U1
Name
ModifiedDate
StateProvince
StateProvince
PK StateProvinceID U3 StateProvinceCode FK1,U3 CountryRegionC...
PK
StateProvinceID
U3
StateProvinceCode
FK1,U3
CountryRegionCode
IsOnlyStateProvinceFlag
U1
Name
FK2
TerritoryID
U2
rowguid
ModifiedDate
CountryRegion
CountryRegion
PK CountryRegionCode U1 Name ModifiedDate
PK
CountryRegionCode
U1
Name
ModifiedDate
Store
Store
PK,FK1 CustomerID Name Demographics U1 rowguid ModifiedDate F...
PK,FK1
CustomerID
Name
Demographics
U1
rowguid
ModifiedDate
FK2
SalesPersonID
StoreContact
StoreContact
PK,FK3 CustomerID PK,FK1 ContactID FK2 ContactTypeID U1 rowgu...
PK,FK3
CustomerID
PK,FK1
ContactID
FK2
ContactTypeID
U1
rowguid
ModifiedDate
Individual
Individual
PK,FK2 CustomerID FK1 ContactID Demographics ModifiedDate
PK,FK2
CustomerID
FK1
ContactID
Demographics
ModifiedDate
Customer
Customer
PK CustomerID FK1 TerritoryID U1 AccountNumber CustomerType U...
PK
CustomerID
FK1
TerritoryID
U1
AccountNumber
CustomerType
U2
rowguid
ModifiedDate
CustomerAddress
CustomerAddress
PK,FK3 CustomerID PK,FK1 AddressID FK2 AddressTypeID U1 rowgu...
PK,FK3
CustomerID
PK,FK1
AddressID
FK2
AddressTypeID
U1
rowguid
ModifiedDate
SalesTerritory
SalesTerritory
PK TerritoryID U1 Name CountryRegionCode Group SalesYTD Sales...
PK
TerritoryID
U1
Name
CountryRegionCode
Group
SalesYTD
SalesLastYear
CostYTD
CostLastYear
U2
rowguid
ModifiedDate
SalesTerritoryHistory
SalesTerritoryHistory
PK,FK1 SalesPersonID PK,FK2 TerritoryID PK StartDate EndDate ...
PK,FK1
SalesPersonID
PK,FK2
TerritoryID
PK
StartDate
EndDate
U1
rowguid
ModifiedDate
SalesPersonQuotaHistory
SalesPersonQuotaHistory
PK,FK1 SalesPersonID PK QuotaDate SalesQuota U1 rowguid Modif...
PK,FK1
SalesPersonID
PK
QuotaDate
SalesQuota
U1
rowguid
ModifiedDate
SalesPerson
SalesPerson
PK,FK1 SalesPersonID FK2 TerritoryID SalesQuota Bonus Commiss...
PK,FK1
SalesPersonID
FK2
TerritoryID
SalesQuota
Bonus
CommissionPct
SalesYTD
SalesLastYear
U1
rowguid
ModifiedDate
ContactCreditCard
ContactCreditCard
PK,FK2 ContactID PK,FK1 CreditCardID ModifiedDate
PK,FK2
ContactID
PK,FK1
CreditCardID
ModifiedDate
SalesOrderHeader
SalesOrderHeader
PK SalesOrderID RevisionNumber OrderDate DueDate ShipDate Sta...
PK
SalesOrderID
RevisionNumber
OrderDate
DueDate
ShipDate
Status
OnlineOrderFlag
U2
SalesOrderNumber
PurchaseOrderNumber
AccountNumber
FK6
CustomerID
FK3
ContactID
FK7
SalesPersonID
FK8
TerritoryID
FK1
BillToAddressID
FK2
ShipToAddressID
FK4
ShipMethodID
CreditCardApprovalCode
FK5
CurrencyRateID
SubTotal
TaxAmt
Freight
TotalDue
Comment
U1
rowguid
ModifiedDate
FK9
CreditCardID
SalesOrderHeaderSalesReason
SalesOrderHeaderSalesReason
PK,FK1 SalesOrderID PK,FK2 SalesReasonID ModifiedDate
PK,FK1
SalesOrderID
PK,FK2
SalesReasonID
ModifiedDate
SalesTaxRate
SalesTaxRate
PK SalesTaxRateID FK1,U2 StateProvinceID U2 TaxType TaxRate N...
PK
SalesTaxRateID
FK1,U2
StateProvinceID
U2
TaxType
TaxRate
Name
U1
rowguid
ModifiedDate
ShoppingCartItem
ShoppingCartItem
PK ShoppingCartItemID ShoppingCartID Quantity FK1 ProductID D...
PK
ShoppingCartItemID
ShoppingCartID
Quantity
FK1
ProductID
DateCreated
ModifiedDate
Product
Product
PK ProductID U1 Name U2 ProductNumber MakeFlag FinishedGoodsF...
PK
ProductID
U1
Name
U2
ProductNumber
MakeFlag
FinishedGoodsFlag
Color
SafetyStockLevel
ReorderPoint
StandardCost
ListPrice
Size
FK3
SizeUnitMeasureCode
FK4
WeightUnitMeasureCode
Weight
DaysToManufacture
ProductLine
Class
Style
FK2
ProductSubcategoryID
FK1
ProductModelID
SellStartDate
SellEndDate
DiscontinuedDate
U3
rowguid
ModifiedDate
SalesOrderDetail
SalesOrderDetail
PK,FK1 SalesOrderID PK SalesOrderDetailID CarrierTrackingNumb...
PK,FK1
SalesOrderID
PK
SalesOrderDetailID
CarrierTrackingNumber
OrderQty
FK2
ProductID
FK2
SpecialOfferID
UnitPrice
UnitPriceDiscount
LineTotal
U1
rowguid
ModifiedDate
Currency
Currency
PK CurrencyCode U1 Name ModifiedDate
PK
CurrencyCode
U1
Name
ModifiedDate
CurrencyRate
CurrencyRate
PK CurrencyRateID U1 CurrencyRateDate FK1,U1 FromCurrencyCode...
PK
CurrencyRateID
U1
CurrencyRateDate
FK1,U1
FromCurrencyCode
FK2,U1
ToCurrencyCode
AverageRate
EndOfDayRate
ModifiedDate
CreditCard
CreditCard
PK CreditCardID CardType U1 CardNumber ExpMonth ExpYear Modif...
PK
CreditCardID
CardType
U1
CardNumber
ExpMonth
ExpYear
ModifiedDate
SalesReason
SalesReason
PK SalesReasonID Name ReasonType ModifiedDate
PK
SalesReasonID
Name
ReasonType
ModifiedDate
SpecialOffer
SpecialOffer
PK SpecialOfferID Description DiscountPct Type Category Start...
PK
SpecialOfferID
Description
DiscountPct
Type
Category
StartDate
EndDate
MinQty
MaxQty
U1
rowguid
ModifiedDate
SpecialOfferProduct
SpecialOfferProduct
PK,FK2 SpecialOfferID PK,FK1 ProductID U1 rowguid ModifiedDate
PK,FK2
SpecialOfferID
PK,FK1
ProductID
U1
rowguid
ModifiedDate
ProductListPriceHistory
ProductListPriceHistory
PK,FK1 ProductID PK StartDate EndDate ListPrice ModifiedDate
PK,FK1
ProductID
PK
StartDate
EndDate
ListPrice
ModifiedDate
ProductReview
ProductReview
PK ProductReviewID FK1 ProductID ReviewerName ReviewDate Emai...
PK
ProductReviewID
FK1
ProductID
ReviewerName
ReviewDate
EmailAddress
Rating
Comments
ModifiedDate
BillOfMaterials
BillOfMaterials
PK BillOfMaterialsID FK1,U1 ProductAssemblyID FK2,U1 Componen...
PK
BillOfMaterialsID
FK1,U1
ProductAssemblyID
FK2,U1
ComponentID
U1
StartDate
EndDate
FK3
UnitMeasureCode
BOMLevel
PerAssemblyQty
ModifiedDate
ProductPhoto
ProductPhoto
PK ProductPhotoID ThumbNailPhoto ThumbnailPhotoFileName Large...
PK
ProductPhotoID
ThumbNailPhoto
ThumbnailPhotoFileName
LargePhoto
LargePhotoFileName
ModifiedDate
ProductProductPhoto
ProductProductPhoto
PK,FK1 ProductID PK,FK2 ProductPhotoID Primary ModifiedDate
PK,FK1
ProductID
PK,FK2
ProductPhotoID
Primary
ModifiedDate
ProductSubcategory
ProductSubcategory
PK ProductSubcategoryID FK1 ProductCategoryID U1 Name U2 rowg...
PK
ProductSubcategoryID
FK1
ProductCategoryID
U1
Name
U2
rowguid
ModifiedDate
ProductCategory
ProductCategory
PK ProductCategoryID U1 Name U2 rowguid ModifiedDate
PK
ProductCategoryID
U1
Name
U2
rowguid
ModifiedDate
ProductDocument
ProductDocument
PK,FK2 ProductID PK,FK1 DocumentID ModifiedDate
PK,FK2
ProductID
PK,FK1
DocumentID
ModifiedDate
ProductModel
ProductModel
PK ProductModelID U1 Name CatalogDescription Instructions U2 ...
PK
ProductModelID
U1
Name
CatalogDescription
Instructions
U2
rowguid
ModifiedDate
ProductModelIllustration
ProductModelIllustration
PK,FK2 ProductModelID PK,FK1 IllustrationID ModifiedDate
PK,FK2
ProductModelID
PK,FK1
IllustrationID
ModifiedDate
Illustration
Illustration
PK IllustrationID Diagram ModifiedDate
PK
IllustrationID
Diagram
ModifiedDate
ProductModelProductDescriptionCulture
ProductModelProductDescriptionCulture
PK,FK3 ProductModelID PK,FK2 ProductDescriptionID PK,FK1 Cult...
PK,FK3
ProductModelID
PK,FK2
ProductDescriptionID
PK,FK1
CultureID
ModifiedDate
ProductDescription
ProductDescription
PK ProductDescriptionID Description U1 rowguid ModifiedDate
PK
ProductDescriptionID
Description
U1
rowguid
ModifiedDate
Culture
Culture
PK CultureID U1 Name ModifiedDate
PK
CultureID
U1
Name
ModifiedDate
UnitMeasure
UnitMeasure
PK UnitMeasureCode U1 Name ModifiedDate
PK
UnitMeasureCode
U1
Name
ModifiedDate
WorkOrderRouting
WorkOrderRouting
PK,FK2 WorkOrderID PK ProductID PK OperationSequence FK1 Loca...
PK,FK2
WorkOrderID
PK
ProductID
PK
OperationSequence
FK1
LocationID
ScheduledStartDate
ScheduledEndDate
ActualStartDate
ActualEndDate
ActualResourceHrs
PlannedCost
ActualCost
ModifiedDate
ProductInventory
ProductInventory
PK,FK2 ProductID PK,FK1 LocationID Shelf Bin Quantity rowguid...
PK,FK2
ProductID
PK,FK1
LocationID
Shelf
Bin
Quantity
rowguid
ModifiedDate
Location
Location
PK LocationID U1 Name CostRate Availability ModifiedDate
PK
LocationID
U1
Name
CostRate
Availability
ModifiedDate
ProductCostHistory
ProductCostHistory
PK,FK1 ProductID PK StartDate EndDate StandardCost ModifiedDate
PK,FK1
ProductID
PK
StartDate
EndDate
StandardCost
ModifiedDate
WorkOrder
WorkOrder
PK WorkOrderID FK1 ProductID OrderQty StockedQty ScrappedQty ...
PK
WorkOrderID
FK1
ProductID
OrderQty
StockedQty
ScrappedQty
StartDate
EndDate
DueDate
FK2
ScrapReasonID
ModifiedDate
ScrapReason
ScrapReason
PK ScrapReasonID U1 Name ModifiedDate
PK
ScrapReasonID
U1
Name
ModifiedDate
TransactionHistory
TransactionHistory
PK TransactionID FK1 ProductID ReferenceOrderID TransactionDa...
PK
TransactionID
FK1
ProductID
ReferenceOrderID
TransactionDate
TransactionType
Quantity
ActualCost
ModifiedDate
ReferenceOrderLineID
TransactionHistoryArchive
TransactionHistoryArchive
PK TransactionID ProductID ReferenceOrderID TransactionDate T...
PK
TransactionID
ProductID
ReferenceOrderID
TransactionDate
TransactionType
Quantity
ActualCost
ModifiedDate
ReferenceOrderLineID
Document
Document
PK DocumentID Title U1 FileName FileExtension U1 Revision Cha...
PK
DocumentID
Title
U1
FileName
FileExtension
U1
Revision
ChangeNumber
Status
DocumentSummary
Document
ModifiedDate
PurchaseOrderDetail
PurchaseOrderDetail
PK,FK2 ShipMethodID PK,FK2 PurchaseOrderID PK PurchaseOrderDe...
PK,FK2
ShipMethodID
PK,FK2
PurchaseOrderID
PK
PurchaseOrderDetailID
DueDate
OrderQty
FK1
ProductID
UnitPrice
LineTotal
ReceivedQty
RejectedQty
StockedQty
ModifiedDate
PurchaseOrderHeader
PurchaseOrderHeader
PK PurchaseOrderID PK,FK3 ShipMethodID RevisionNumber Status ...
PK
PurchaseOrderID
PK,FK3
ShipMethodID
RevisionNumber
Status
FK1
EmployeeID
FK2
VendorID
OrderDate
ShipDate
SubTotal
TaxAmt
Freight
TotalDue
ModifiedDate
Vendor
Vendor
PK VendorID U1 AccountNumber Name CreditRating PreferredVendo...
PK
VendorID
U1
AccountNumber
Name
CreditRating
PreferredVendorStatus
ActiveFlag
PurchasingWebServiceURL
ModifiedDate
VendorAddress
VendorAddress
PK,FK3 VendorID PK,FK1 AddressID FK2 AddressTypeID ModifiedDate
PK,FK3
VendorID
PK,FK1
AddressID
FK2
AddressTypeID
ModifiedDate
VendorContact
VendorContact
PK,FK3 VendorID PK,FK1 ContactID FK2 ContactTypeID ModifiedDate
PK,FK3
VendorID
PK,FK1
ContactID
FK2
ContactTypeID
ModifiedDate
ShipMethod
ShipMethod
PK ShipMethodID U1 Name ShipBase ShipRate U2 rowguid Modified...
PK
ShipMethodID
U1
Name
ShipBase
ShipRate
U2
rowguid
ModifiedDate
ProductVendor
ProductVendor
PK,FK1 ProductID PK,FK3 VendorID AverageLeadTime StandardPric...
PK,FK1
ProductID
PK,FK3
VendorID
AverageLeadTime
StandardPrice
LastReceiptCost
LastReceiptDate
MinOrderQty
MaxOrderQty
OnOrderQty
FK2
UnitMeasureCode
ModifiedDate
AWBuildVersion
AWBuildVersion
PK SystemInformationID Database Version VersionDate ModifiedD...
PK
SystemInformationID
Database Version
VersionDate
ModifiedDate
Employee
Employee
PK EmployeeID U2 NationalIDNumber FK2 ContactID U1 LoginID FK...
PK
EmployeeID
U2
NationalIDNumber
FK2
ContactID
U1
LoginID
FK1
ManagerID
ShiftID
Title
BirthDate
MaritalStatus
Gender
HireDate
SalariedFlag
VacationHours
SickLeaveHours
CurrentFlag
U3
rowguid
ModifiedDate
EmployeeDepartmentHistory
EmployeeDepartmentHistory
PK,FK2 EmployeeID PK,FK1 DepartmentID PK StartDate PK,FK3 Shi...
PK,FK2
EmployeeID
PK,FK1
DepartmentID
PK
StartDate
PK,FK3
ShiftID
EndDate
ModifiedDate
Department
Department
PK DepartmentID U1 Name GroupName ModifiedDate
PK
DepartmentID
U1
Name
GroupName
ModifiedDate
JobCandidate
JobCandidate
PK JobCandidateID FK1 EmployeeID Resume ModifiedDate
PK
JobCandidateID
FK1
EmployeeID
Resume
ModifiedDate
Shift
Shift
PK ShiftID U1 Name U2 StartTime U2 EndTime ModifiedDate
PK
ShiftID
U1
Name
U2
StartTime
U2
EndTime
ModifiedDate
EmployeePayHistory
EmployeePayHistory
PK,FK1 EmployeeID PK RateChangeDate Rate PayFrequency Modifie...
PK,FK1
EmployeeID
PK
RateChangeDate
Rate
PayFrequency
ModifiedDate
EmployeeAddress
EmployeeAddress
PK,FK1 EmployeeID PK,FK2 AddressID U1 rowguid ModifiedDate
PK,FK1
EmployeeID
PK,FK2
AddressID
U1
rowguid
ModifiedDate
DatabaseLog
DatabaseLog
PK DatabaseLogID PostTime DatabaseUser Event Schema Object TS...
PK
DatabaseLogID
PostTime
DatabaseUser
Event
Schema
Object
TSQL
XmlEvent
Schemas
Schemas
Purchasing
Purchasing
Production
Production
HumanResources
HumanResources
Person
Person
Sales
Sales
dbo
dbo
ErrorLog
ErrorLog
PK ErrorLogID ErrorTime UserName ErrorNumber ErrorSeverity Er...
PK
ErrorLogID
ErrorTime
UserName
ErrorNumber
ErrorSeverity
ErrorState
ErrorProcedure
ErrorLine
ErrorMessage