王老师:19139051760(微信同号)  13333709510
联大   青书学堂   文才   和学   现代兴业   安徽教育在线   超星   弘成   广东开放大学   国家开放大学   上海开放大学   含弘慕课 

教育服务

成人高校
成考录取分数线
我要提升学历
提升学历的理由:
升职加薪、积分落户、考研、公务员考试、子女入学、出国留学


成人高考报名入口

当前位置: 首页 > 联大系统 > 河南财经政法大学> 河南财经政法大学SQLServer
 

输入试题:
本题添加时间: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 您的答案:B

出自 河南财经政法大学SQLServer  联大系统

河南财经政法大学

更多试题>>>>
1、现有书目表book,数据见下表。 现在执行sql语句:update book set title=replace(replace(title,.j.,.a.),.servlet.,.csharp.),执行结果是 bookid title 1
2、Sql server提供了一些日期函数,以下说法错误的是 A.select dateadd(mm,4,’01/01/1999’) 返回值为:05/01/99 B.select datediff(mm,.03/06/2003.,.03/0
3、现有顾客表customers, 包含数据如下表,若执行sql语句:select avg(discount) from customers,以下()是输出结果。(选择一项)cid cname discount 1 jack null 2 le
4、现有顾客表customers, 包含数据如下表,若执行sql语句:select count(distinct(city) from customers,以下()是输出结果 cid cname city jac null 2 lee beij
5、[多选题,10分] 成绩表grade中字段score代表分数,以下()语句返回成绩表中的最低分。 A.select max(score) from grade B.select top 1 score from grade order


提升学历-成人高考报名入口 提升学历-成人高考院校名单