码迷,mamicode.com
首页 > 数据库 > 详细

实验16-13 请在testdb中:查找在1996年10月中有销售记录的客户

时间:2018-07-19 20:59:11      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:HERE   from   数据库   and   date   sele   产品   数据   name   

在testdb是产品销售数据库,请在testdb中:查找在1996年10月中有销售记录的客户编号、名称和订单总额。

select sales.cust_id,cust_name,tot_amt
from sales,customer
where sales.cust_id=customer.cust_id
and order_date between ‘1996-10-1‘ and ‘1996-10-31‘

  

实验16-13 请在testdb中:查找在1996年10月中有销售记录的客户

标签:HERE   from   数据库   and   date   sele   产品   数据   name   

原文地址:https://www.cnblogs.com/masterchd/p/9337630.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!