Oracle Database SQL 12c 1z0-071 Exam Practice Test 2
© examsiri.com
Question : 35 of 50
Marks:
+1,
-0
View the Exhibit and examine PRODUCTS and ORDER_ITEMS tables.
You executed the following query to display PRODUCT_NAME and the number of times the product has been ordered:
SELECT p.product_name, i.item_cnt
FROM (SELECT product_id, COUNT (*) item_cnt
FROM order_items
GROUP BY product_id) i RIGHT OUTER JOIN products p
ON i.product_id = p.product_id; What would happen when the above statement is executed?
Go to Question: