OCP-1Z0-051-V9.02-132题
来源:互联网 发布:英语复读机软件 编辑:程序博客网 时间:2024/05/16 11:06
132. View the Exhibit and examine the structure of the SALES and PRODUCTS tables.
In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table,
You want to list each product ID and the number of times it has been sold.
Evaluate the following query:
SQL>SELECT p.prod_id, COUNT(s.prod_id)
FROM products p _____________ sales s
ON p.prod_id = s.prod_id
GROUP BY p.prod_id;
Which two JOIN options can be used in the blank in the above query to get the required output? (Choose
two.)
A. JOIN
B. FULL OUTER JOIN
C. LEFT OUTER JOIN
D. RIGHT OUTER JOIN
Answer: BC
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/12877591
列出每一个产品ID和产品已销售的次数。
列出每一个产品ID,所以C正确,由于s表的prod_id是products表的外键,所以是products的子集,所以B也正确。
- OCP-1Z0-051-V9.02-132题
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-1题
- OCP-1Z0-051-V9.02-11题
- OCP-1Z0-051-V9.02-12题
- OCP-1Z0-051-V9.02-14题
- OCP-1Z0-051-V9.02-15题
- OCP-1Z0-051-V9.02-17题
- OCP-1Z0-051-V9.02-18题
- OCP-1Z0-051-V9.02-21题
- OCP-1Z0-051-V9.02-118题
- OCP-1Z0-051-V9.02-120题
- OCP-1Z0-051-V9.02-32题
- OCP-1Z0-051-V9.02-33题
- OCP-1Z0-051-V9.02-93题
- OCP-1Z0-051-V9.02-94题
- OCP-1Z0-051-V9.02-95题
- iOS单例模式的实现
- java设计模式(二)—— 装饰、门面、享元、原型、状态、策略
- 竞速游戏任务系统设计
- C语言做图 书 信 息 管 理 系 统,大学的孩子们 福音在哪,这足够应付你们考试了
- 逻辑卷管理器--LVM
- OCP-1Z0-051-V9.02-132题
- netty的心跳检测实现
- C++中Const 修饰指针就近原则
- 自动收集和手工收集统计信息讲解
- 天堂门坏了上帝招标
- 介绍一个团队协同工作工具:Trello
- debian arm source list
- 打开windows的路由功能
- 在自己的WSASOCKET服务端/客户端中做了一个简单的解包程序处理粘包的问题