You are on page 1of 1

AdventureWorks OLTP Schema Sales

CreditCard
November 2005 SalesPersonQuotaHistory
ContactCreditCard
PK CreditCardID
PK,FK2 ContactID
SalesPerson PK,FK1 SalesPersonID PK,FK1 CreditCardID
Best Print Results if: CardType
PK QuotaDate
SalesOrderHeaderSalesReason U1 CardNumber
11X17 paper PK,FK1 SalesPersonID ModifiedDate SpecialOffer
ExpMonth
SalesQuota
Landscape FK2 TerritoryID U1 rowguid
PK,FK1 SalesOrderID ExpYear PK SpecialOfferID
PK,FK2 SalesReasonID ModifiedDate
Fit to 1 sheet SalesTerritoryHistory
SalesQuota ModifiedDate
Description
Bonus SalesOrderHeader
ModifiedDate DiscountPct
PK,FK1 SalesPersonID CommissionPct
PK SalesOrderID Type
SalesYTD
dbo PK,FK2
PK
TerritoryID
StartDate SalesLastYear
RevisionNumber
SalesReason
Category
StartDate
ErrorLog U1 rowguid
DatabaseLog OrderDate PK SalesReasonID EndDate
EndDate ModifiedDate
DueDate Currency MinQty
PK ErrorLogID U1 rowguid CurrencyRate
PK DatabaseLogID ShipDate Name MaxQty
ModifiedDate PK CurrencyCode
ErrorTime Status PK CurrencyRateID ReasonType U1 rowguid
UserName PostTime OnlineOrderFlag ModifiedDate ModifiedDate
AWBuildVersion U1 Name
ErrorNumber DatabaseUser U2 SalesOrderNumber U1 CurrencyRateDate
ModifiedDate
PK SystemInformationID ErrorSeverity Event PurchaseOrderNumber FK1,U1 FromCurrencyCode
ErrorState Schema AccountNumber FK2,U1 ToCurrencyCode
SalesTerritory
Database Version ErrorProcedure Object FK6 CustomerID AverageRate
VersionDate ErrorLine TSQL PK TerritoryID FK3 ContactID EndOfDayRate SalesOrderDetail
ModifiedDate ErrorMessage XmlEvent FK7 SalesPersonID ModifiedDate
U1 Name Customer FK8 TerritoryID PK,FK1 SalesOrderID
CountryRegionCode FK1 BillToAddressID PK SalesOrderDetailID SpecialOfferProduct
PK CustomerID
Group FK2 ShipToAddressID PK,FK2 SpecialOfferID
SalesYTD FK4 ShipMethodID CarrierTrackingNumber PK,FK1 ProductID
FK1 TerritoryID
SalesLastYear CreditCardApprovalCode OrderQty
U1 AccountNumber
HumanResources CostYTD
CostLastYear
CustomerType
CustomerAddress
FK5 CurrencyRateID
SubTotal
SalesTaxRate ShoppingCartItem
FK2
FK2
ProductID
SpecialOfferID
U1 rowguid
U2 rowguid ModifiedDate
U2 rowguid TaxAmt PK SalesTaxRateID UnitPrice
ModifiedDate PK,FK3 CustomerID PK ShoppingCartItemID
ModifiedDate Freight UnitPriceDiscount
Department PK,FK1 AddressID TotalDue FK1,U2 StateProvinceID LineTotal
ShoppingCartID
Comment U2 TaxType U1 rowguid
PK DepartmentID FK2 AddressTypeID Quantity
U1 rowguid TaxRate ModifiedDate
EmployeeDepartmentHistory U1 rowguid FK1 ProductID
ModifiedDate Name
U1 Name ModifiedDate DateCreated
PK,FK2 EmployeeID FK9 CreditCardID U1 rowguid
GroupName ModifiedDate
PK,FK1 DepartmentID ModifiedDate
ModifiedDate Individual
PK StartDate
PK,FK3 ShiftID
PK,FK2 CustomerID
EndDate
FK1 ContactID
ModifiedDate
Demographics Person Production
ModifiedDate StateProvince ProductModelIllustration
Employee Illustration
ProductPhoto PK,FK2 ProductModelID
Contact PK StateProvinceID
PK EmployeeID PK,FK1 IllustrationID PK IllustrationID
PK ProductPhotoID
PK ContactID U3 StateProvinceCode
U2 NationalIDNumber ProductListPriceHistory ModifiedDate Diagram
FK1,U3 CountryRegionCode ThumbNailPhoto
Shift FK2 ContactID IsOnlyStateProvinceFlag ModifiedDate
NameStyle PK,FK1 ProductID ThumbnailPhotoFileName
U1 LoginID U1 Name
PK ShiftID Title PK StartDate LargePhoto
FK1 ManagerID Address ProductProductPhoto
FirstName FK2 TerritoryID LargePhotoFileName
ShiftID U2 rowguid
U1 Name MiddleName EndDate ModifiedDate PK,FK1 ProductID
Title Store PK AddressID
LastName ModifiedDate ProductReview ListPrice PK,FK2 ProductPhotoID
U2 StartTime BirthDate
U2 EndTime PK,FK1 CustomerID Suffix ModifiedDate
MaritalStatus U2 AddressLine1 PK ProductReviewID
ModifiedDate EmailAddress Primary
Gender U2 AddressLine2
Name EmailPromotion ModifiedDate
HireDate U2 City FK1 ProductID ProductModel
Demographics Phone
SalariedFlag FK1,U2 StateProvinceID ReviewerName
U1 rowguid PasswordHash PK ProductModelID
VacationHours U2 PostalCode ReviewDate ProductModelProductDescriptionCulture
ModifiedDate PasswordSalt Product
JobCandidate SickLeaveHours U1 rowguid
FK2 SalesPersonID AdditionalContactInfo EmailAddress U1 Name
CurrentFlag ModifiedDate Rating PK,FK3 ProductModelID
PK JobCandidateID U1 rowguid PK ProductID CatalogDescription
U3 rowguid Comments PK,FK2 ProductDescriptionID
ModifiedDate Instructions
ModifiedDate ModifiedDate PK,FK1 CultureID
FK1 EmployeeID CountryRegion U1 Name U2 rowguid
Resume U2 ProductNumber ModifiedDate ModifiedDate
ModifiedDate PK CountryRegionCode MakeFlag
StoreContact FinishedGoodsFlag
U1 Name BillOfMaterials Color ProductSubcategory
PK,FK3 CustomerID ContactType ModifiedDate SafetyStockLevel
AddressType PK BillOfMaterialsID PK ProductSubcategoryID ProductCategory
PK,FK1 ContactID ReorderPoint
EmployeePayHistory PK ContactTypeID PK AddressTypeID StandardCost PK ProductCategoryID
FK1,U1 ProductAssemblyID FK1 ProductCategoryID
FK2 ContactTypeID ListPrice ProductDescription
PK,FK1 EmployeeID FK2,U1 ComponentID U1 Name
U1 rowguid U1 Name U1 Name Size U1 Name
PK RateChangeDate U1 StartDate U2 rowguid PK ProductDescriptionID
ModifiedDate ModifiedDate U2 rowguid FK3 SizeUnitMeasureCode U2 rowguid
EndDate ModifiedDate Culture
ModifiedDate FK4 WeightUnitMeasureCode ModifiedDate
Rate FK3 UnitMeasureCode Description
Weight PK CultureID
PayFrequency EmployeeAddress BOMLevel U1 rowguid
DaysToManufacture
ModifiedDate PerAssemblyQty ModifiedDate
PK,FK1 EmployeeID ProductLine U1 Name
ModifiedDate Class ModifiedDate
PK,FK2 AddressID ProductDocument
Style
FK2 ProductSubcategoryID ProductCostHistory PK,FK2 ProductID
U1 rowguid
FK1 ProductModelID PK,FK1 DocumentID
ModifiedDate PK,FK1 ProductID
SellStartDate
UnitMeasure PK StartDate ModifiedDate
SellEndDate
Purchasing PK UnitMeasureCode DiscontinuedDate
EndDate
ShipMethod U3 rowguid
StandardCost
VendorContact U1 Name ModifiedDate
PK ShipMethodID ModifiedDate
ModifiedDate
PK,FK3 VendorID
PK,FK1 ContactID U1 Name
ShipBase
FK2 ContactTypeID ShipRate WorkOrderRouting TransactionHistoryArchive

Schemas ModifiedDate

VendorAddress
U2 rowguid
ModifiedDate
TransactionHistory
ProductInventory

PK,FK2 ProductID
PK,FK2
PK
WorkOrderID
ProductID
PK
Document

DocumentID
PK TransactionID
PK TransactionID PK,FK1 LocationID
PK OperationSequence ProductID
PK,FK3 VendorID Title
FK1 ProductID ReferenceOrderID
PK,FK1 AddressID
Sales Vendor
ReferenceOrderID
TransactionDate
Shelf
Bin
FK1 LocationID
ScheduledStartDate
U1 FileName
FileExtension
TransactionDate
TransactionType
FK2 AddressTypeID Quantity U1 Revision
TransactionType ScheduledEndDate Quantity
PK VendorID ModifiedDate rowguid ChangeNumber
Quantity ActualStartDate ActualCost
ModifiedDate Status ModifiedDate
ProductVendor ActualEndDate
Purchasing U1 AccountNumber
Name PK,FK1 ProductID
ActualCost
ModifiedDate ActualResourceHrs
DocumentSummary
Document
ReferenceOrderLineID
ReferenceOrderLineID PlannedCost
PurchaseOrderHeader CreditRating PK,FK3 VendorID ModifiedDate
ActualCost
PreferredVendorStatus ModifiedDate
PK PurchaseOrderID Location
ActiveFlag AverageLeadTime
Person PK,FK3 ShipMethodID PurchasingWebServiceURL
ModifiedDate
StandardPrice
LastReceiptCost
PK LocationID

RevisionNumber LastReceiptDate U1 Name


Status MinOrderQty CostRate
FK1 EmployeeID MaxOrderQty
Production FK2 VendorID
OrderDate
OnOrderQty
Availability
ModifiedDate
FK2 UnitMeasureCode WorkOrder ScrapReason
ShipDate ModifiedDate
SubTotal PK WorkOrderID PK ScrapReasonID
PurchaseOrderDetail
HumanResources TaxAmt
Freight PK,FK2 ShipMethodID FK1 ProductID U1 Name
TotalDue PK,FK2 PurchaseOrderID OrderQty ModifiedDate
ModifiedDate PK PurchaseOrderDetailID StockedQty
ScrappedQty
dbo DueDate
OrderQty
StartDate
EndDate
FK1 ProductID DueDate
UnitPrice FK2 ScrapReasonID
LineTotal ModifiedDate
ReceivedQty
RejectedQty
StockedQty
ModifiedDate

You might also like