普通会员
登录
题库
实习信息
校招公告
参访活动
题库
产品/项目/运营
题目列表
2.检索并列出已订购产品的清单 表OrderItems含有非...
单选题
2.检索并列出已订购产品的清单
表OrderItems含有非空的列prod_id代表商品id,
包含了所有已订购的商品(有些已被订购多次)。
prod_id
a1
a2
a3
a4
a5
a6
a7
【问题】编写SQL 语句,检索并列出所有已订购商品(prod_id)的去重后的清单。
A.
select prod_id
from OrderItems ;
B.
select id
from OrderItems
where prod_id is not null;
C.
select prod_id
from OrderItems
where prod_id is not null;
D.
select distinct prod_id
from OrderItems
where prod_id is not null;
上一题
[单选题] 3.检索所有列 现在有Customers 表(表中含有列cust_id代表客户id,cust_name代表客户姓名)...
下一题
[单选题] 1.从 Customers 表中检索所有的 ID 现有表Customers如下: cust_id...
纠错
题目信息
校招真题
-
正确率
0
评论
69
点击
收藏
已收藏
错题本
已加入错题本
我的笔记
登录添加笔记