Oracle
1Z0-061 · Question #303
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…
The correct answer is B. FULL OUTER JOIN C. LEFT OUTER JOIN. See the full explanation below for the reasoning.
Question
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.)
Exhibit
Options
- AJOIN
- BFULL OUTER JOIN
- CLEFT OUTER JOIN
- DRIGHT OUTER JOIN
How the community answered
(52 responses)- A10% (5)
- B85% (44)
- D6% (3)
Community Discussion
No community discussion yet for this question.
