大數據就業實戰培訓 Oracle就業實戰培訓
071考試題庫之前是比較穩定的,但隨著Oracle的調整,071考試不斷的增加新的考題,增加了考試的難度,所以我們專門收集整理了這些考試,并對這些考題進行解析,希望可以對考生有幫助。
每周五晚8點,我們有免費的OCP解析公開課,地址:https://ke.qq.com/course/326223 OCP題庫交流群:1015267481,驗證ocp
-------------------------------------------------------
071考試-第54題、choose the best answer:
View the Exhibit and examine the structure of the ORDER_ITEMS and ORDERS tables.
You are asked to retrieve the ORDER_ID, PRODUCT_ID, and total price (UNIT_PRICE multiplied by QUANTITY), where the total price is greater than 50,000.
You executed the following SQL statement:
SELECT order_id, product_id, unit_price*quantity "Total Price"
FROM order_items
WHERE unit_price*quantity > 50000
NATURAL JOIN orders;
Which statement is true regarding the execution of the statement?
A) The statement would not execute because the WHERE clause is before the NATURAL JOIN clause.
B) The statement would not execute because the USING keyword is missing in the NATURAL JOIN clause.
C) The statement would execute and provide the desired result.
D) The statement would not execute because the ON keyword is missing in the NATURAL JOIN clause.
Answer:A
(解析:注意語法,where 子句應該出現在各種連接的語句后面,比如 right outer join 等等。)