nerdexam
Oracle

1Z0-071 · Question #135

View the Exhibit and examine the structure of the SALES and PRODUCTS tables. (Choose two.) In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table. You must list…

The correct answer is A. FULL OUTER JOIN C. LEFT OUETR JOIN. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the SALES and PRODUCTS tables. (Choose two.) In the SALES table, PROD_ID is the foreign key referencing PROD_ID in the PRODUCTS table. You must list each product ID and the number of times it has been sold. Examine this query which is missing a JOIN operator:

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 operations can be used to obtain the required output?

Exhibit

1Z0-071 question #135 exhibit

Options

  • AFULL OUTER JOIN
  • BJOIN
  • CLEFT OUETR JOIN
  • DRIGHT OUTER JOIN

How the community answered

(33 responses)
  • A
    76% (25)
  • B
    9% (3)
  • D
    15% (5)

Community Discussion

No community discussion yet for this question.

Full 1Z0-071 Practice