ocp 11g考题大全:1Z0-051-095题
来源:优技教育
ocp 11g考题大全:1Z0-051-095题,完整题库请点击这里联系老师咨询了解
95. The PRODUCTS table has the following structure:
name Null Type
PROD_ID NOT NULL NUMBER(4)
PROD_NAME VARCHAR2(25)
PROD_EXPIRY_DATE DATE
Evaluate the following two SQL statements:
SQL>SELECT prod_id, NVL2(prod_expiry_date, prod_expiry_date + 15,'')
FROM products;
SQL>SELECT prod_id, NVL(prod_expiry_date, prod_expiry_date + 15)
FROM products;
Which statement is true regarding the outcome?
A. Both the statements execute and give different results.
B. Both the statements execute and give the same result.
C. Only the first SQL statement executes successfully.
D. Only the second SQL statement executes successfully.
Answer: A
试题解析:
此题考的本意是NVL和NVL2之间逻辑计算的区别。
精华阅读