文件名称:实验 4 查询数据库
介绍说明--下载内容来自于网络,使用问题请自行百度
1、从customer表中查询所有客户的姓名和电话。
2、查询库存量大于1000的商品,结果按库存量从大到小排序。
3、查询每个客户的订单金额的总和。
4、查询2005年上半年(1月1日到6月30日)订货总数大于5000的商品。
5、查询所有北京客户的订单信息,包括订单的序号、客户的姓名、商品名、数量。
6、查询所有商品在什么时间卖出了多少。
7、查询没有订单的商品信息。
8、查询每种商品的销售总数量和总金额。
-one from the customer table for the names of all customers and telephone. Two inquiries inventory of more than 1,000 commodities, stocks on average by sequencing. Three inquiries each customer's total amount of orders. Four inquiries the first half of 2005 (January 1 to June 30) the total number of orders for more than 5,000 products. Five, all inquiries Beijing customer order information, including the serial number of orders, the customer's name, trade names, the numbers. 6, inquiries all goods and the time of the number sold. 7, no orders for the commodity information. 8, inquiries every commodity in total sales volume and the total amount.
2、查询库存量大于1000的商品,结果按库存量从大到小排序。
3、查询每个客户的订单金额的总和。
4、查询2005年上半年(1月1日到6月30日)订货总数大于5000的商品。
5、查询所有北京客户的订单信息,包括订单的序号、客户的姓名、商品名、数量。
6、查询所有商品在什么时间卖出了多少。
7、查询没有订单的商品信息。
8、查询每种商品的销售总数量和总金额。
-one from the customer table for the names of all customers and telephone. Two inquiries inventory of more than 1,000 commodities, stocks on average by sequencing. Three inquiries each customer's total amount of orders. Four inquiries the first half of 2005 (January 1 to June 30) the total number of orders for more than 5,000 products. Five, all inquiries Beijing customer order information, including the serial number of orders, the customer's name, trade names, the numbers. 6, inquiries all goods and the time of the number sold. 7, no orders for the commodity information. 8, inquiries every commodity in total sales volume and the total amount.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
实验 4 查询数据库.doc
www.dssz.com.txt
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.