常见的转换函数是?() A: nvl B: nvl2 C: nullif D: coalesce
常见的转换函数是?() A: nvl B: nvl2 C: nullif D: coalesce
查看表PRODUCTS的LIST_PRICE和MIN_PRICE字段,哪两个表达式能得到一样的结果() A: NVL(NULLIF(list_price,min_price),0) B: NVL(COALESCE(list_price,min_price),0) C: NVL2(COALESCE(list_price,min_price),min_price,0) D: COALESCE(NVL2(list_price,list_price,min_price),0)
查看表PRODUCTS的LIST_PRICE和MIN_PRICE字段,哪两个表达式能得到一样的结果() A: NVL(NULLIF(list_price,min_price),0) B: NVL(COALESCE(list_price,min_price),0) C: NVL2(COALESCE(list_price,min_price),min_price,0) D: COALESCE(NVL2(list_price,list_price,min_price),0)
使用下列哪个不能将Null值转换为实际值()。 A: NVL B: NVL2 C: NULLIF D: To_number
使用下列哪个不能将Null值转换为实际值()。 A: NVL B: NVL2 C: NULLIF D: To_number
比较两个表达式,如果两个表达式相等,则函数返回NULL,否则返回第一个参数表达的值,这个函数为 A: nvl B: nvl2 C: nullif D: nullof
比较两个表达式,如果两个表达式相等,则函数返回NULL,否则返回第一个参数表达的值,这个函数为 A: nvl B: nvl2 C: nullif D: nullof
查询部门20的员工数量,每个月的工资总和及平均工资( ) A: SELECT sum(nvl(sal,0)),avg(nvl(sal,0)) from emp B: SELECT ename,sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno C: SELECT ename,count(empno),sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno D: SELECT count(empno),sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno
查询部门20的员工数量,每个月的工资总和及平均工资( ) A: SELECT sum(nvl(sal,0)),avg(nvl(sal,0)) from emp B: SELECT ename,sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno C: SELECT ename,count(empno),sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno D: SELECT count(empno),sum(nvl(sal,0)),avg(nvl(sal,0)) from emp where deptno =20 group by deptno
查看表INVOICE结构,下列哪个SQL语句能执行成功() A: SELEC B: inv_no,NVL2(inv_date,’Pending’,’Incomplete’)FRO C: invoice D: SELEC E: inv_no,NVL2(inv_amt,inv_date,’NotAvailable’)FRO F: invoice G: SELEC H: inv_no,NVL2(inv_date,sysdate-inv_date,sysdate)FRO I: invoice J: SELEC K: inv_no,NVL2(inv_amt,inv_amt*.25,’NotAvailable’)FRO L: invoice
查看表INVOICE结构,下列哪个SQL语句能执行成功() A: SELEC B: inv_no,NVL2(inv_date,’Pending’,’Incomplete’)FRO C: invoice D: SELEC E: inv_no,NVL2(inv_amt,inv_date,’NotAvailable’)FRO F: invoice G: SELEC H: inv_no,NVL2(inv_date,sysdate-inv_date,sysdate)FRO I: invoice J: SELEC K: inv_no,NVL2(inv_amt,inv_amt*.25,’NotAvailable’)FRO L: invoice
如果QUANTITY的值为空值(null),在执行以下哪个语句时会显示一个0 A: SELECT id_number, 100/quantity B: FROM C: inventory; D: SELECT id_number, NVL(100/quantity, 0) E: FROM F: inventory; G: SELECT id_number, NULL(100/quantity, 0) H: FROM I: inventory; J: SELECT id_number, TO_CHAR(100/quantity, 0) K: FROM L: inventory; M: SELECT id_number, NVL(100/quantity, ’999.00’) N: FROM O: inventory;
如果QUANTITY的值为空值(null),在执行以下哪个语句时会显示一个0 A: SELECT id_number, 100/quantity B: FROM C: inventory; D: SELECT id_number, NVL(100/quantity, 0) E: FROM F: inventory; G: SELECT id_number, NULL(100/quantity, 0) H: FROM I: inventory; J: SELECT id_number, TO_CHAR(100/quantity, 0) K: FROM L: inventory; M: SELECT id_number, NVL(100/quantity, ’999.00’) N: FROM O: inventory;
使用哪些函数可以执行显式数据类型转换?() A: ROUN B: TRUN C: ADD_MONTHS D: LENGT E: SUBST F: LPA G: TRIM H: TO_CHA I: TO_DAT J: TO_NUMBER K: NV L: NVL2、NULLIF
使用哪些函数可以执行显式数据类型转换?() A: ROUN B: TRUN C: ADD_MONTHS D: LENGT E: SUBST F: LPA G: TRIM H: TO_CHA I: TO_DAT J: TO_NUMBER K: NV L: NVL2、NULLIF
查看表MARKS结构,哪个SQL语句能执行成功() A: SELEC B: student_name,subject1.FRO C: marks.WHERE-subject1>AVG(subject1) D: SELEC E: student_name,SUM(subject1)FRO F: marks.WHERE-student_name-LIKE’R%’ G: SELEC H: SUM(subject1+subject2+subject3)FRO I: marks.WHERE-student_name-ISNULL J: SELEC K: SUM(DISTINC L: NVL(subject1,0)),MAX(subject1)FRO M: mark.sWHERE-subject1>subject2
查看表MARKS结构,哪个SQL语句能执行成功() A: SELEC B: student_name,subject1.FRO C: marks.WHERE-subject1>AVG(subject1) D: SELEC E: student_name,SUM(subject1)FRO F: marks.WHERE-student_name-LIKE’R%’ G: SELEC H: SUM(subject1+subject2+subject3)FRO I: marks.WHERE-student_name-ISNULL J: SELEC K: SUM(DISTINC L: NVL(subject1,0)),MAX(subject1)FRO M: mark.sWHERE-subject1>subject2
假设产品表product中存在价格字段:price number(7,2),对于下列语句:[br][/br]SELECT NVL(10/price, '0') FROM product;[br][/br]如果price列中包含空值,将会出现( A: 该语句将失败,因为值不能被0除 B: 将显示值0 C: 该语句将失败,因为值不能被空值除 D: 将显示值10
假设产品表product中存在价格字段:price number(7,2),对于下列语句:[br][/br]SELECT NVL(10/price, '0') FROM product;[br][/br]如果price列中包含空值,将会出现( A: 该语句将失败,因为值不能被0除 B: 将显示值0 C: 该语句将失败,因为值不能被空值除 D: 将显示值10