96.Examine the structure of the INVOICE table.
name Null Type
INV_NO NOT NULL NUMBER(3)
INV_DATE DATE
INV_AMT NUMBER(10,2)
Which two SQL statements would execute successfully? (Choose two.)
A.SELECT inv_no,NVL2(inv_date,'Pending','Incomplete') FROM invoice;
B.SELECT inv_no,NVL2(inv_amt,inv_date,'Not Available') FROM invoice;
C.SELECT inv_no,NVL2(inv_date,sysdate-inv_date,sysdate) FROM invoice;
D.SELECT inv_no,NVL2(inv_amt,inv_amt*.25,'Not Available') FROM invoice;
答案:AC
解析:
nvl2是干啥的参考95题
类型参看下面的
The argument expr1 can have any data type. The arguments expr2 and expr3 can have any data types except LONG.
If the data types of expr2 and expr3 are different, then Oracle Database implicitly converts one to the other. If they cannot be converted implicitly, then the database r
name Null Type
INV_NO NOT NULL NUMBER(3)
INV_DATE DATE
INV_AMT NUMBER(10,2)
Which two SQL statements would execute successfully? (Choose two.)
A.SELECT inv_no,NVL2(inv_date,'Pending','Incomplete') FROM invoice;
B.SELECT inv_no,NVL2(inv_amt,inv_date,'Not Available') FROM invoice;
C.SELECT inv_no,NVL2(inv_date,sysdate-inv_date,sysdate) FROM invoice;
D.SELECT inv_no,NVL2(inv_amt,inv_amt*.25,'Not Available') FROM invoice;
答案:AC
解析:
nvl2是干啥的参考95题
类型参看下面的
The argument expr1 can have any data type. The arguments expr2 and expr3 can have any data types except LONG.
If the data types of expr2 and expr3 are different, then Oracle Database implicitly converts one to the other. If they cannot be converted implicitly, then the database r