1. 程式人生 > >【12c OCP】CUUG OCP認證071考試原題解析(36)

【12c OCP】CUUG OCP認證071考試原題解析(36)

last iss bit 返回 cau ann following price tom

36.choose the best answer

View the Exhibits and examine the structures of the PRODUCTS, SALES, and CUSTOMERS tables.

You issue the following query:

SQL>SELECT p.prod_id,prod_name,prod_list_price,

quantity_sold,cust_last_name

FROM products p NATURAL JOIN sales s NATURAL JOIN customers c

WHERE prod_id =148;

Which statement is true regarding the outcome of this query?

A) It executes successfully.

B) It produces an error because a column used in the NATURAL join cannot have a qualifier.

C) It produces an error because all columns used in the NATURAL join should have a qualifier.

D) It produces an error because the NATURAL join can be used only with two tables.

Answer:B

(解析:執行該語句時返回錯誤:

SELECT p.prod_id,prod_name,prod_list_price,

*

第 1 行出現錯誤:

ORA-25155: NATURAL 聯接中使用的列不能有限定詞

)

【12c OCP】CUUG OCP認證071考試原題解析(36)