OCP-1Z0-051-V9.02-131题

131. View the Exhibit and examine the structure of the PRODUCT, COMPONENT, and PDT_COMP

tables.

In PRODUCT table, PDTNO is the primary key.

In COMPONENT table, COMPNO is the primary key.

In PDT_COMP table, (PDTNO,COMPNO) is the primary key, PDTNO is the foreign key referencing

PDTNO in PRODUCT table and COMPNO is the foreign key referencing the COMPNO in COMPONENT

table.

You want to generate a report listing  the product names and their corresponding component names, if the

component names and product names exist.

Evaluate the following query:

SQL>SELECT pdtno,pdtname, compno,compname

FROM product _____________ pdt_comp

USING (pdtno) ___________ component USING(compno)

WHERE compname IS NOT NULL;

Which combination of joins used in the blanks in the above query gives the correct output? 

A. JOIN; JOIN

B. FULL OUTER JOIN; FULL OUTER JOIN

C. RIGHT OUTER JOIN; LEFT OUTER JOIN 外键的关系

D. LEFT OUTER JOIN; RIGHT OUTER JOIN

Answer: C

答案解析:

参考:http://blog.csdn.net/rlhua/article/details/12877591


listing the product names and their corresponding component names, if the

component names and product names exist

报表显示的是如果component names和product names存在,则显示product names和对应的component names

即显示PDT_COMP表中所有的值

评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值