nerdexam
Oracle

1Z0-061 · Question #57

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…

The correct answer is C. RIGHT OUTER JOIN; LEFT OUTER JOIN. See the full explanation below for the reasoning.

Question

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?

Exhibit

1Z0-061 question #57 exhibit

Options

  • AJOIN; JOIN
  • BFULL OUTER JOIN; FULL OUTER JOIN
  • CRIGHT OUTER JOIN; LEFT OUTER JOIN
  • DLEFT OUTER JOIN; RIGHT OUTER JOIN

How the community answered

(32 responses)
  • A
    16% (5)
  • B
    3% (1)
  • C
    75% (24)
  • D
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 1Z0-061 Practice