|
本题添加时间:2023/4/3 12:59:00 |
|
圆梦客服:王老师 19139051760(微信同号) 19139051760(微信同号) |
现有订单表orders, 包含数据如下表。若查询既订购了产品P01,又订购了产品P02的顾客编号,可以执行以下()sql语句。 cid (顾客编号) Pid (产品编号) C01 P01 C01 P02 C02 P01 C03 P02 A.select distinct(cid) from orders o1 where o1.pid in (.p01.,.p02.) B.select distinct(cid) from orders o1,orders o2 where o1.pid=.p01. and o2.pid=.p02. and o1.cid=o2.cid C.select distinct(cid) from orders o1 where pid=.p01. and cid in (select cid from orders where pid =.p02.) D.select distinct(cid) from orders o1,orders o2 where o1.pid=.p01. and o2.pid=.p02.
|
答案是:参考答案:BD
出自
河南财经政法大学SQL Server 联大系统
河南财经政法大学
|
更多试题>>>>
1、[填空题,2.6分] 管理沟通是沟通者为了获取沟通对象预期的反应和反馈而向对方_____的过程
2、[填空题,2.6分] 评价下属人员用以完成任务的经验和主动程度,这属于____技能
3、现有书目表book,数据见下表。 现在执行sql语句:update book set title=replace(replace(title,.j.,.a.),.servlet.,.csharp.),执行结果是 bookid title 1
4、[填空题,2.6分] 当管理者与职员关系十分密切,而且职员完全可以胜任工作,可以放心地让他们干下去,这时,管理者应该选择的领导模式是
5、Sql server提供了一些日期函数,以下说法错误的是
A.select dateadd(mm,4,’01/01/1999’) 返回值为:05/01/99
B.select datediff(mm,.03/06/2003.,.03/0
|
|