QuestionQ27

VerifiedDisplaying Data from Multiple Tables

Refer to the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS tables:

Question Image

Question Image

Question Image

You run the following query:

Question Image

Which statement is correct regarding the result of this query?

Explanation

A NATURAL JOIN uses identically named columns as join columns. PRODUCTS and SALES both contain PROD_ID, and Oracle does not allow a column involved in a NATURAL JOIN to be qualified with a table name or alias. Therefore, the reference p.prod_id causes an error.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!