NorthWind database, northwind database
NorthWind database
- Categories: product category;
- MERs: customer;
- Employees: Employee
- Employees Territories: employee Fields
- Order Details: Order Details
- Orders: Order
- Products: Product
- Region: Region
- Shippers: Freight Forwarder
- Suppliers: Supplier
- Territories: Region
Create a graph in the NorthWind database:
Perform the following queries to learn the data content:
select productid,productname,unitprice from Productswhere UnitPrice>49
Query results:
select productid,productname,UnitsInStock,UnitsOnOrder from Products where UnitsInStock<UnitsOnOrder
Query results:
select * from Productswhere ProductName='Aniseed Syrup' or ProductName='Ipoh Coffee'
select * from Productswhere ProductName in('Aniseed Syrup','Ipoh Coffee')
Query results:
select * from Productswhere SupplierID=CategoryID
Query results:
select SupplierID,CompanyName,Phone,Fax from Supplierswhere Phone is not null and fax is null
select * from Suppliersorder by City desc
select SupplierID,CompanyName,Country from Supplierswhere Country in('USA','UK','Germany')
select SupplierID,CompanyName,ContactTitle,Phone from Supplierswhere ContactTitle='Marketing Manager' and Phone is not null
select distinct ShipVia from Orders
select distinct ShipCity from Orders
select OrderID,ShippedDate,RequiredDate from Orderswhere ShippedDate>RequiredDate
select OrderID,CustomerID,Freight from Orderswhere Freight<55
select * from Categorieswhere CategoryName like '_e%'
select * from Categorieswhere Description like '%sweet%'
Northwind database
1: Go to the official Microsoft website www.microsoft.com/
2: Click Download & Trias on the right of the page and select Download Center to enter the Download Center.
3: Find Microsoft SQL Server 2000 on the webpage and click to enter
4: Select NorthWind and pubs Sample Databases for SQL Server 2000 and click to enter
5: Click the Download button to start downloading.
6: Obtain the SQL2000SampleDb. msi file, double-click
7: Enter C: \ SQL Server 2000 Sample Databases. An SQL script instwnd. SQL and instpubs. SQL will be connected.
8: run the two scripts in SQLServer2005.
What is the background of the Northwind database? It is best to explain each table and field?
If you have installed the Chinese version of office2000 or later, you can install the example database that is included with Microsoft access. Here you need the Northwind database, each data table has a Chinese name, and each field has a Chinese name. You can check it and you will understand it.