OCP 11g认证考试题库:051-131题
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询OCP 11g认证考试题库:051-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
试题解析:
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表中所有的值