You are on page 1of 14

Northwind Database

TechWriter 2007 for Databases Sample

..........................................................................................................................................7 Order Details........................................................................................ 11 Shippers....................................................................Table of Contents Northwind Database....................................................................................................................................................................................................................................................... 13 TechWriter 2007 for Databases Sample ............................................................ 3 Tables...................................................................................... 8 Orders... 5 Customers.......................................................................................................... 4 Categories........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 12 Suppliers............................................................................................................................ 9 Products................... 6 Employees.....

Northwind Database Northwind Database Description This database reference documents the Northwind database. See Also Tables TechWriter 2007 for Databases Sample 3 .

Suppliers' names.Northwind Database Tables: Northwind Tables Name Categories Customers Employees Order Details Orders Products Shippers Suppliers Description Categories of Northwind products. addresses. Details on products. titles. and personal information. and phone numbers. and units in stock. and freight charge for each order. prices. Product names. Shippers' names and phone numbers. and hyperlinks to home pages. Employees' names. suppliers. and prices for each order in the Orders table. TechWriter 2007 for Databases Sample 4 . Customer name. order date. addresses. quantities. Customers' names. phone numbers.

Description of the category.Northwind Database Table: Categories Description Categories of Northwind products. Columns Name CategoryID CategoryName Description Picture Type AutoNumber Text(15) Memo Binary Description Number automatically assigned to a new category. A picture representing the food category. Relationships Primary Table Categories Primary Key CategoryID Foreign Table Products Foreign Key CategoryID Indexes Name PrimaryKey Type Unique Unique Columns CategoryName CategoryID Check Constraints None TechWriter 2007 for Databases Sample 5 . Name of food category.

ZIP code where customer is located. Columns Name Address City CompanyName ContactName ContactTitle Country CustomerID Fax Phone PostalCode Region Type Text(60) Text(15) Text(40) Text(30) Text(30) Text(15) Text(5) Text(24) Text(24) Text(10) Text(15) Description Street or post-office box. Phone number includes country code or area code. State or province.Northwind Database Table: Customers Description Customers' names. Unique five-character code based on customer name. Name of customer company. Name of city where customer is located. Name of country where customer is located. Phone number includes country code or area code. Relationships Primary Table Customers Primary Key CustomerID Foreign Table Orders Foreign Key CustomerID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Non-unique Non-unique Columns CustomerID City CompanyName PostalCode Region Check Constraints None TechWriter 2007 for Databases Sample 6 . addresses. Title of contact person. Name of contact person. and phone numbers.

Internal telephone extension number. State or province. Relationships Primary Table Employees Primary Key EmployeeID Foreign Table Orders Foreign Key EmployeeID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Columns EmployeeID LastName PostalCode Check Constraints Name BirthDate Check <Date() TechWriter 2007 for Databases Sample 7 . Picture of employee. First name of employee. Name of city where employee lives. Date that employee was hired. ZIP code where employee lives. Number automatically assigned to new employee. titles.Northwind Database Table: Employees Description Employees' names. Columns Name Address BirthDate City Country EmployeeID Extension FirstName HireDate HomePhone LastName Notes Photo PostalCode Region ReportsTo Title TitleOfCourtesy Type Text(60) Date/Time Text(15) Text(15) AutoNumber Text(4) Text(10) Date/Time Text(24) Text(20) Memo Text(255) Text(10) Text(15) Long Integer Text(30) Text(25) Description Street or post-office box. and personal information. Name of country where employee lives. Last name of employee. Employee's date of birth. Phone number includes country code or area code. Employee's supervisor. Employee's title. Title used in salutations. General information about employee's background.

ProductID OrderID OrderID ProductID ProductID Check Constraints Name Discount Quantity UnitPrice Check Between 0 And 1 >0 >=0 TechWriter 2007 for Databases Sample 8 . Same as Order ID in Orders table.Northwind Database Table: Order Details Description Details on products. Number of units. Same as Product ID in Products table. Price per unit. and prices for each order in the Orders table. Relationships Primary Table Orders Products Primary Key OrderID ProductID Foreign Table Order Details Order Details Foreign Key OrderID ProductID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Non-unique Non-unique Columns OrderID. Columns Name Discount OrderID ProductID Quantity UnitPrice Type Single Long Integer Long Integer Integer Currency Description Discount percentage applied. quantities.

Northwind Database Table: Orders Description Customer name.no post-office box allowed. Same as Shipper ID in Shippers table. and freight charge for each order. Columns Name CustomerID EmployeeID Freight OrderDate OrderID RequiredDate ShipAddress ShipCity ShipCountry ShipName ShippedDate ShipPostalCode ShipRegion ShipVia Type Text(5) Long Integer Currency Date/Time AutoNumber Date/Time Text(60) Text(15) Text(15) Text(40) Date/Time Text(10) Text(15) Long Integer Description Same entry as in Customers table. Same entry as in Employees table. Street address only -. Shipping cost. Unique order number. Name of person or company to receive the shipment. Name of city where order was shipped. Relationships Primary Table Customers Employees Shippers Orders Primary Key CustomerID EmployeeID ShipperID OrderID Foreign Table Orders Orders Orders Order Details Foreign Key CustomerID EmployeeID ShipVia OrderID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Non-unique Non-unique Non-unique Non-unique Non-unique Non-unique Columns OrderID CustomerID CustomerID EmployeeID EmployeeID OrderDate ShippedDate ShipVia ShipPostalCode TechWriter 2007 for Databases Sample 9 . order date. Date that order was shipped. State or province. Required by date. Name of country where order was shipped. ZIP code where order was shipped. Date of order.

Northwind Database Check Constraints None TechWriter 2007 for Databases Sample 10 .

Minimum units to maintain in stock.g. Name of the product (e. Number of units on order. Columns Name CategoryID Discontinued ProductID ProductName QuantityPerUnit ReorderLevel SupplierID UnitPrice UnitsInStock UnitsOnOrder Type Long Integer Yes/No AutoNumber Text(40) Text(20) Integer Long Integer Currency Integer Integer Description Same entry as in Categories table. Number of units in stock. and units in stock. 1-liter bottle). Same entry as in Suppliers table. suppliers.. 24-count case. prices.Northwind Database Table: Products Description Product names. Yes means item is no longer available. Relationships Primary Table Categories Suppliers Products Primary Key CategoryID SupplierID ProductID Foreign Table Products Products Order Details Foreign Key CategoryID SupplierID ProductID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Non-unique Non-unique Non-unique Columns ProductID CategoryID CategoryID ProductName SupplierID SupplierID Check Constraints Name ReorderLevel UnitPrice UnitsInStock UnitsOnOrder Check >=0 >=0 >=0 >=0 TechWriter 2007 for Databases Sample 11 . Number automatically assigned to new product. Price per unit.

Phone number includes country code or area code. Number automatically assigned to new shipper. Columns Name CompanyName Phone ShipperID Type Text(40) Text(24) AutoNumber Description Name of shipping company. Relationships Primary Table Shippers Primary Key ShipperID Foreign Table Orders Foreign Key ShipVia Indexes Name PrimaryKey Type Unique Columns ShipperID Check Constraints None TechWriter 2007 for Databases Sample 12 .Northwind Database Table: Shippers Description Shippers' names and phone numbers.

Columns Name Address City CompanyName ContactName ContactTitle Country Fax HomePage Phone PostalCode Region SupplierID Type Text(60) Text(15) Text(40) Text(30) Text(30) Text(15) Text(24) Memo Text(24) Text(10) Text(15) AutoNumber Description Street or post-office box. Title of contact person at supplier. Name of country where supplier is located. Name of contact person at supplier.Northwind Database Table: Suppliers Description Suppliers' names. ZIP code where supplier is located. Number automatically assigned to new supplier. Supplier's home page on World Wide Web. Name of city where supplier is located. and hyperlinks to home pages. State or province. Relationships Primary Table Suppliers Primary Key SupplierID Foreign Table Products Foreign Key SupplierID Indexes Name PrimaryKey Type Unique Non-unique Non-unique Columns SupplierID CompanyName PostalCode Check Constraints None TechWriter 2007 for Databases Sample 13 . phone numbers. addresses. Phone number includes country code or area code. Name of supplier. Phone number includes country code or area code.

Index C Categories 5 Customers 6 E Employees 7 N Northwind Database 3 O Order Details 8 Orders 9 P Products 11 S Shippers 12 Suppliers 13 T Tables 4 TechWriter 2007 for Databases Sample .