NorthWind 数据库,northwind数据库
NorthWind 数据库
- Categories:产品类别;
- Customers:客户;
- Employees:雇员
- Employees Territories:员工涉及领域
- Order Details:订单明细
- Orders:订单
- Products:产品
- Region:地区
- Shippers:运货商
- Suppliers:供应商
- Territories:地域
下面进行几次查询了解数据内容:
select productid,productname,unitprice from Products where UnitPrice>49查询结果:
select productid,productname,UnitsInStock,UnitsOnOrder from Products where UnitsInStock<UnitsOnOrder查询结果:
select * from Products where ProductName='Aniseed Syrup' or ProductName='Ipoh Coffee'
select * from Products
where ProductName in('Aniseed Syrup','Ipoh Coffee')
查询结果:select * from Products where SupplierID=CategoryID查询结果:
select SupplierID,CompanyName,Phone,Fax from Suppliers where Phone is not null and fax is null
select * from Suppliers order by City desc
select SupplierID,CompanyName,Country from Suppliers
where Country in('USA','UK','Germany')
select SupplierID,CompanyName,ContactTitle,Phone from Suppliers where ContactTitle='Marketing Manager' and Phone is not null
select distinct ShipVia from Orders
select distinct ShipCity from Orders
select OrderID,ShippedDate,RequiredDate from Orders where ShippedDate>RequiredDate
select OrderID,CustomerID,Freight from Orders where Freight<55
select * from Categories where CategoryName like '_e%'
select * from Categories where Description like '%sweet%'
1:进入微软官方网站www.microsoft.com/
2:点击网页右侧Download & Trias然后选择Download Center进入下载中心
3:在网页上找到Microsoft SQL Server 2000 点击进入
4:选择NorthWind and pubs Sample Databases for SQL Server 2000 点击进入
5:点Download按钮开始下载
6:获得SQL2000SampleDb.msi文件,双击
7:进入C:\SQL Server 2000 Sample Databases会有连个sql脚本instwnd.sql和instpubs.sql
8:在SQLServer2005中运行这两个脚本即可
如果你安装的是中文的office2000或者是更高的版本,你可以要求安装Microsoft access自己附带的示例数据库,这个其中就有你要的Northwind数据库,其中每一个数据表都有中文的名称,每一个field都有中文的名字,你可以去看看,一看你就会明白的。
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。