AdventureWorks 與 Northwind 資料表的比較

AdventureWorks 範例資料庫中的一些資料表,在結構及內容上與 Northwind 範例資料庫中的一些資料表類似。您可以使用下表,從適當的 AdventureWorks 資料表選取資料行,將使用 Northwind 的查詢轉換為使用 AdventureWorks 的查詢。例如,如果查詢參考到 Northwind 中的 Orders 資料表,那麼使用 Sales.SalesOrderHeader 資料表可以為 AdventureWorks 撰寫類似的查詢。請注意,AdventureWorks 使用 dbo 以外的結構描述名稱。結構描述名稱含在資料表名稱內,且針對資料表執行查詢時必須指定。如需詳細資訊,請參閱<AdventureWorks 中的結構描述>。

Northwind

AdventureWorks

註解

Categories

Production.ProductCategory

如需詳細的分類,請參閱 ProductSubCategoryProductModel

Customers

Sales.Customer

使用 Sales.IndividualSales.Store

AdventureWorks 包含兩種類型的客戶: 商店 (零售商) 和個人 (消費者)。

Customer Demographics

Sales.Individual

Sales.Store

請參閱 Sales.IndividualSales.Store 資料表中的 Demographics 資料行 (xml)。

Employees

HumanResources.Employee

使用 Person.Contact

 

Employee Territories

Sales.SalesPerson

Sales.SalesPerson 對應銷售代表與銷售區域。請參閱 Sales.SalesTerritoryEmployees 資料表。

Orders

Sales.SalesOrderHeader

 

Order Details

Sales.SalesOrderDetail

 

Products

Production.Product

 

Region

Sales.SalesTerritory

RegionDescription 資料行等同於 Sales.SalesTerritory 中的 Group 資料行。

Shippers

Purchasing.ShipMethod

 

Suppliers

Purchasing.Vendor

 

Territories

Sales.SalesTerritory

TerritoryDescription 資料行等同於 Sales.SalesTerritory 中的 Name 資料行。