EMPLOYEES中职员编号为90的职员的commission_pct为空值,salary为1000,语句select12*salary*(commission_pct+0.2)comm from EMPLOYEES;comm显示的结果是()。 A.12000B.0C.2400D.NULL
EMPLOYEES中职员编号为90的职员的commission_pct为空值,salary为1000,语句select12*salary*(commission_pct+0.2)comm from EMPLOYEES;comm显示的结果是()。
A.12000
B.0
C.2400
D.NULL
相关考题:
客户需要计算EMP表中所有职工12*salary* commission_pct的值.EMP表结构如下:LAST NAME VARCNAR2(35)NOT NULL SALARY NUMBER(9,2)NOT NULL COMMISION_PCTNUMBER(4,2)哪个语句可以查询计算EMP表中所有职工行?() A.SELECT last_name,12*salary* commission_pct FROM empB.SELECT last_name,12*salary*(commission_pct,0)FROM empC.SELECT last_name,12*salary*(nvl(commission_pct,0))FROM emp如果oracle第一个参数为空那么显示第二个参数的值,如果第一个参数的值不为空,则显示第一个参数本来的值D.SELECT last_name,12*salary*(decode(commission_pct,0))FROM emp
显示没有签订任何订单的职员信息(职员号和姓名),正确的SQL语句是A) SELECT职员.职员号,姓名FROM职员JOIN订单ON订单.职员号二职员.职员号GROUP BY职员.职员号HAVING COUNT(*)=0B) SELECT职员.职员号,姓名FROM职员LEFT JOIN订单ON订单.职员号二职员.职员号GROUP BY职员.职员号HAVING COUNT(*)=0C)SELECT职员号,姓名FROM职员WHERE职员号NOT IN(SELECT职员号FROM订单)D) SELECT职员.职员号,姓名FROM职员WHERE职员.职员号<>(SELECT订单.职员号FROM订单)
The EMPLOYEE tables has these columns:LAST_NAME VARCHAR2(35)SALARY NUMBER(8,2)COMMISSION_PCT NUMBER(5,2)You want to display the name and annual salary multiplied by the commission_pct for all employees. For records that have a NULL commission_pct, a zero must be displayed against the calculated column.Which SQL statement displays the desired results? ()A. SELECT last_name, (salary * 12) * commission_pct FROM EMPLOYEES;B. SELECT last_name, (salary * 12) * IFNULL(commission_pct, 0) FROM EMPLOYEES;C. SELECT last_name, (salary * 12) * NVL2(commission_pct, 0) FROM EMPLOYEES;D. SELECT last_name, (salary * 12) * NVL(commission_pct, 0) FROM EMPLOYEES;
Management has asked you to calculate the value 12*salary* commission_pct for all the employees in the EMP table. The EMP table contains these columns:LAST NAME VARCNAR2(35) NOT NULLSALARY NUMBER(9,2) NOT NULLCOMMISION_PCT NUMBER(4,2)Which statement ensures that a value is displayed in the calculated columns for all employees? ()A. SELECT last_name, 12*salary* commission_pct FROM emp;B. SELECT last_name, 12*salary* (commission_pct,0) FROM emp;C. SELECT last_name, 12*salary*(nvl(commission_pct,0)) FROM emp;D. SELECT last_name, 12*salary*(decode(commission_pct,0)) FROM emp;
显示没有签订任何订单的职员信息(职员号和姓名),正确的SQL语句是A.SELECT职员.职员号,姓名 FROM 职员 JOIN 订单 ON 订单.职员号=职员.职员号 GROUP BY职员.职员号 HAVING COUNT(*)=0B.SELECT 职员.职员号,姓名 FROM 职员 LEFT JOIN 订单 ON 订单.职员号=职员.职员号 GROUP BY 职员.职员号 HAVING COUNT(*)=0C.SELECT 职员号,姓名 FROM 职员 WHERE 职员号 NOT IN(SELECT 职员号 FROM 订单)D.SELECT 职员.职员号,姓名 FROM 职员 WHERE 职员.职员号<>(SELECT 订单.职员号 FROM 订单)
显示没有签订任何订单的职员信息(职员号和姓名),正确的SQL语句是( )。A.SELECT 职员.职员号,姓名 FROM 职员 JOIN 订单 ON 订单.职员号=职员.职员号 GROUP BY 职员.职员号 HAVING COUNT(*)=0B.SELECT 职员.职员号,姓名 FROM 职员 LEFT JOIN 订单 ON 订单.职员号=职员.职员号 GROUP BY 职员.职员号 HAVING COUNT(*)=0C.SELECT 职员号,姓名 FROM 职员 WHERE 职员号 NOT IN(SELECT 职员号 FROM 订单)D.SELECT 职员.职员号,姓名 FROM 职员 WHERE 职员.职员号<>(SELECT订单.职员号FROM订单)
在Oracle中,下面哪条语句当COMM字段为空时显示0,不为空时显示COMM的值()。 A.select ename,nvl(comm.,0)from empB.select ename,null(comm.,0)from empC.SELECT ename,NULLIF(comm,0)FROM empD.SELECT ename,DECODE(comm.,NULL,0)FROM emp
将变量salary重新赋值为原来取值的3倍的语句是 ()A.salary=salary*2.00;B.salary=salary+(salary*3.00);C.salary=salary*3;D.salary=*3;