You are on page 1of 1

AdventureWorks 2008 Sales

SalesPerson
OLTP Schema Rev 10.00.0009
PK,FK1 BusinessEntityID
CurrencyRate
Currency
PK CurrencyRateID
SalesOrderHeader
Best Print Results if: FK2 TerritoryID PK CurrencyCode
SalesPersonQuotaHistory SalesQuota PK,FK5 BusinessEntityID U1 CurrencyRateDate
11X17 paper Samples and Sample Databases at SpecialOffer
PK,FK1 BusinessEntityID Bonus PK SalesOrderID FK1,U1 FromCurrencyCode U1 Name
Landscape http://CodePlex.com/SqlServerSamples PK QuotaDate CommissionPct FK2,U1 ToCurrencyCode ModifiedDate PK SpecialOfferID
SalesYTD FK7 ShipMethodID AverageRate
Fit to 1 sheet SalesLastYear EndOfDayRate Description
SalesQuota RevisionNumber
U1 rowguid U1 rowguid OrderDate ModifiedDate DiscountPct
ModifiedDate ModifiedDate DueDate Type
dbo SalesTerritoryHistory

PK,FK1 BusinessEntityID
ShipDate
Status
SalesReason
Category
StartDate
ErrorLog EndDate
DatabaseLog PK,FK2 TerritoryID OnlineOrderFlag PK SalesReasonID
PK StartDate SalesTerritory U2 SalesOrderNumber SalesOrderHeaderSalesReason MinQty
PK ErrorLogID
PK DatabaseLogID PurchaseOrderNumber Name MaxQty
PK TerritoryID PK,FK1 BusinessEntityID
ErrorTime EndDate AccountNumber ReasonType U1 rowguid
PostTime U1 rowguid FK6 TerritoryID PK,FK1 SalesOrderID ModifiedDate ModifiedDate
AWBuildVersion UserName U1 Name
DatabaseUser ModifiedDate FK1 BillToAddressID PK,FK2 SalesReasonID
ErrorNumber CountryRegionCode
PK SystemInformationID ErrorSeverity Event FK2 ShipToAddressID
Group ModifiedDate
ErrorState Schema FK8 CreditCardID
SalesYTD
Database Version ErrorProcedure Object CreditCardApprovalCode
SalesLastYear SalesOrderDetail
VersionDate ErrorLine TSQL FK4 CurrencyRateID
CostYTD
ModifiedDate ErrorMessage XmlEvent SubTotal
CostLastYear PK,FK1 BusinessEntityID
Customer TaxAmt PK,FK1 SalesOrderID
U2 rowguid SpecialOfferProduct
Store Freight PK SalesOrderDetailID
ModifiedDate
PK CustomerID TotalDue PK,FK2 SpecialOfferID
PK,FK1,FK2 BusinessEntityID Comment CarrierTrackingNumber PK,FK1 ProductID
FK2 PersonID U1 rowguid
HumanResources Name
Demographics
FK3
FK1
StoreID
TerritoryID
ModifiedDate
SalesTaxRate ShoppingCartItem FK2
OrderQty
ProductID U1 rowguid
FK2 SpecialOfferID ModifiedDate
U1 rowguid U1 AccountNumber CreditCard
PK SalesTaxRateID PK ShoppingCartItemID UnitPrice
ModifiedDate U2 rowguid
PK CreditCardID UnitPriceDiscount
Department ModifiedDate PersonCreditCard ShoppingCartID
FK1,U2 StateProvinceID LineTotal
PK DepartmentID PK,FK2 BusinessEntityID CardType U2 TaxType Quantity U1 rowguid
EmployeeDepartmentHistory PK,FK1 CreditCardID U1 CardNumber TaxRate FK1 ProductID ModifiedDate
U1 Name ExpMonth Name DateCreated
PK,FK2 BusinessEntityID ExpYear U1 rowguid ModifiedDate
GroupName ModifiedDate
PK,FK1 DepartmentID ModifiedDate ModifiedDate
ModifiedDate
PK StartDate
PK,FK3 ShiftID

EndDate
ModifiedDate
Person Production
ProductModelIllustration
Password Illustration
Employee PK,FK2 ProductModelID
PK,FK1 BusinessEntityID Address PK,FK1 IllustrationID
ProductListPriceHistory ProductPhoto PK IllustrationID
PK,FK1 BusinessEntityID PK AddressID
PasswordHash PK,FK1 ProductID PK ProductPhotoID ModifiedDate Diagram
Shift U2 NationalIDNumber PasswordSalt U2 AddressLine1 PK StartDate ModifiedDate
U1 LoginID U2 AddressLine2 ProductReview ThumbNailPhoto
PK ShiftID ShiftID EndDate
U2 City ThumbnailPhotoFileName
JobTitle PK ProductReviewID ListPrice
FK1,U2 StateProvinceID LargePhoto
U1 Name BirthDate ModifiedDate ProductProductPhoto
U2 PostalCode LargePhotoFileName
U2 StartTime MaritalStatus FK1 ProductID
Person SpatialLocation ModifiedDate PK,FK1 ProductID
U2 EndTime Gender ReviewerName
U1 rowguid PK,FK2 ProductPhotoID
ModifiedDate HireDate PK,FK1 BusinessEntityID ReviewDate
ModifiedDate
SalariedFlag EmallAddress EmailAddress
Rating Primary
VacationHours PersonType PK,FK1 BusinessEntityID ProductModel
Comments ModifiedDate
SickLeaveHours NameStyle PK EmailAddressID
JobCandidate CurrentFlag Title ModifiedDate Product PK ProductModelID
ProductModelProductDescriptionCulture
U3 rowguid FirstName EmailAddress PK ProductID
PK,FK1 BusinessEntityID StateProvince U1 Name
ModifiedDate MiddleName PK,FK3 ProductModelID
PK JobCandidateID CatalogDescription
LastName PK StateProvinceID U1 Name PK,FK2 ProductDescriptionID
Suffix Instructions PK,FK1 CultureID
Resume U2 ProductNumber
EmailPromotion U2 rowguid
ModifiedDate U3 StateProvinceCode MakeFlag
AdditionalContactInfo PersonPhone ModifiedDate ModifiedDate
FK1,U3 CountryRegionCode FinishedGoodsFlag
Demographics IsOnlyStateProvinceFlag BillOfMaterials Color ProductSubcategory
PK,FK1 BusinessEntityID
U1 rowguid U1 Name SafetyStockLevel
PK PhoneNumber PK ProductSubcategoryID ProductCategory
ModifiedDate FK2 TerritoryID PK BillOfMaterialsID ReorderPoint
PK,FK2 PhoneNumberTypeID
EmployeePayHistory U2 rowguid StandardCost PK ProductCategoryID
FK1,U1 ProductAssemblyID FK1 ProductCategoryID
ModifiedDate ListPrice U1 Name
PK,FK1 BusinessEntityID FK2,U1 ComponentID Size U2 rowguid U1 Name ProductDescription
PK RateChangeDate U1 StartDate
BusinessEntityContact FK3 SizeUnitMeasureCode ModifiedDate U2 rowguid Culture
EndDate FK4 WeightUnitMeasureCode PK ProductDescriptionID
Rate ModifiedDate
PK,FK3 BusinessEntityID PhoneNumberType FK3 UnitMeasureCode Weight PK CultureID
PayFrequency BOMLevel Description
PK,FK1 PersonID DaysToManufacture
ModifiedDate PK PhoneNumberTypeID PerAssemblyQty U1 rowguid
ProductLine U1 Name
FK2 ContactTypeID ModifiedDate Class ModifiedDate ModifiedDate
ProductDocument
ModifiedDate Name
Style
FK2 ProductSubcategoryID ProductCostHistory PK,FK2 ProductID
FK1 ProductModelID PK,FK1 DocumentNode
TransactionHistory PK,FK1 ProductID
SellStartDate
PK StartDate ModifiedDate
AddressType PK TransactionID SellEndDate
ContactType CountryRegion DiscontinuedDate
EndDate
PK AddressTypeID FK1 ProductID U3 rowguid
PK ContactTypeID PK CountryRegionCode StandardCost
ReferenceOrderID ModifiedDate
ModifiedDate
U1 Name TransactionDate
U1 Name U1 Name
U2 rowguid BusinessEntityAddress TransactionType
BusinessEntity ModifiedDate ModifiedDate
ModifiedDate Quantity
PK,FK3 AddressID Document
PK BusinessEntityID ActualCost
PK,FK2 BusinessEntityID WorkOrderRouting TransactionHistoryArchive
ModifiedDate PK DocumentNode
Schemas rowguid
ModifiedDate FK1 AddressTypeID
ModifiedDate
ReferenceOrderLineID
PK,FK2
ProductInventory

ProductID
PK,FK2
PK
WorkOrderID
ProductID
DocumentLevel
PK TransactionID
PK,FK1 LocationID Title ProductID
PK OperationSequence
FK1 Owner ReferenceOrderID
Shelf
Sales Bin
FK1 LocationID
ScheduledStartDate
U1
FolderFlag
FileName
TransactionDate
TransactionType
Quantity FileExtension
Purchasing Vendor
UnitMeasure rowguid
ModifiedDate
ScheduledEndDate
ActualStartDate
U1 Revision
ChangeNumber
Quantity
ActualCost
PK,FK1 BusinessEntityID ActualEndDate ModifiedDate
Purchasing U1 AccountNumber
PK UnitMeasureCode
ActualResourceHrs
Status
DocumentSummary
ReferenceOrderLineID
PlannedCost
U1 Name Document
Name ActualCost
ShipMethod ModifiedDate rowguid
CreditRating Location ModifiedDate
PreferredVendorStatus ModifiedDate
Person PK
PurchaseOrderHeader

PurchaseOrderID
ActiveFlag PK ShipMethodID PK LocationID
PurchasingWebServiceURL
ModifiedDate U1 Name U1 Name
FK1 ShipMethodID ShipBase CostRate
FK4 VendorID ShipRate
Production PurchaseOrderDetail
RevisionNumber U2 rowguid
ModifiedDate
ProductVendor
Availability
ModifiedDate
Status WorkOrder
OrderDate PK,FK3 BusinessEntityID
PK,FK2 PurchaseOrderID
ShipDate PK,FK1 ProductID PK WorkOrderID
PK PurchaseOrderDetailID
HumanResources DueDate
SubTotal
TaxAmt AverageLeadTime FK1 ProductID
Freight StandardPrice OrderQty
OrderQty
TotalDue LastReceiptCost StockedQty
FK1 ProductID
ModifiedDate LastReceiptDate ScrappedQty
UnitPrice
dbo LineTotal
MinOrderQty
MaxOrderQty
ScrapReason StartDate
EndDate
ReceivedQty PK ScrapReasonID
OnOrderQty DueDate
RejectedQty
FK2 UnitMeasureCode FK2 ScrapReasonID
StockedQty U1 Name
ModifiedDate ModifiedDate
ModifiedDate ModifiedDate

You might also like