NorthWind database, northwind database

Source: Internet
Author: User
Tags microsoft website

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.