在示例数据库NorthWind中执行数据查询,要求如下:
1. 在NorthWind数据库中查询所有产品(Products表)的信息。
2. 查询NorthWind中雇员姓名、所在城市及其家庭电话,姓名以格式“姓.名”显示。(Employees为雇员表)
3. 在NorthWind中查询出单价(unitprice)最贵的前10种产品(Products表)的信息。
4. 在NorthWind中查询出所有单价(unitprice)超过50美元的产品名称ProductName、产品代号ProductID及其单位重量QuantityPerUnit。(产品表Products)
5. 在NorthWind中查询出职务(title)为销售代表’Sales Representative’,称呼(TitleOfCourtesy)为’Ms.’的所有职员(Employees表)姓名和生日。
6. 在NorthWind中查询出每个供应商(SupplierID)所提供产品(Products表)的平均价格avg(UnitPrice)。
7. 在NorthWind中查询得到不同的国家(Country)有多少家供应商(Suppliers表)的信息。
8. 在NorthWind中查询显示哪些供应商(Suppliers表)有传真(Fax)。
9. 在NorthWind中查询不同产品ProductID所订购的总价Quantity*UnitPrice。(提示:[Order Details]订单详情表)
10. 在NorthWind中查询出生日期BirthDate在1940年至1960年之间的雇员Employees信息。
use NorthWind
go
select *from Products
select *f