Evaluate this SQL statement:SELECT ename, sal, 12* sal+100 FROM emp;The SAL column stores the monthly salary of the employee. Which change must be made to the abovesyntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100

题目

Evaluate this SQL statement:SELECT ename, sal, 12* sal+100 FROM emp;The SAL column stores the monthly salary of the employee. Which change must be made to the abovesyntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"? ()

A. No change is required to achieve the desired results.

B. SELECT ename, sal, 12* (sal+100) FROM emp;

C. SELECT ename, sal, (12* sal)+100 FROM emp;

D. SELECT ename, sal +100,*12 FROM emp;


相似考题
更多“Evaluate this SQL statement:SELECT ename, sal, 12* sal+100 FROM emp;The SAL column stores ”相关问题
  • 第1题:

    在PL/SQL中定义一个可以存放雇员表(EMP)的员工名称(ENAME)的PL/SQL表类型,应该()

    A.type array arr_type[emp.ename%type] index by binary_integer;

    B.type table arr_type[emp.ename%type] index by binary_integer;

    C.type arr_type is table of emp.ename%type index by binary_integer;

    D.type arr_type is pl_sql table of emp.ename%type index by binary_integer;


    参考答案:C

  • 第2题:

    (33)如果对关系 emp(eno, ename, salary)成功执行下面的SQL语句:

    CREATE CLUSTER INDEX name_index ON emp(salary)

    其结果是

    A)在 emp表上按sal娜升序创建了一个聚簇索引

    B)在 emp表上按salary降序创建了一个聚簇索引

    C)在 emp表上按salary升序创建了一个唯一索引

    D)在 emp表上按salary降序创建了一个唯一索引


    正确答案:A

  • 第3题:

    列出薪水高于所在部门平均工资的员工信息()。

    A.select deptno,ename,sal from emp a where sal> (select avg(a.sal) from emp where deptno=a.deptno);

    B.select deptno,ename,sal from emp a where sal> (select avg(sal) from emp where deptno=a.deptno);

    C.select a.deptno,a.ename,a.sal from emp a,emp b where a.deptno=b.deptno and a.sal>avg(b.sal);

    D.select a.deptno,a.ename,a.sal from emp a,emp b where a.deptno=b.deptno and b.sal>avg(a.sal);


    select deptno,ename,sal from emp a where sal>(select avg(sal) from emp where deptno=a.deptno);

  • 第4题:

    授予sa用户在SCOTT.EMP表中SAL列的更新权限的语句是()。

    A.GRANT CHANGE ON SCOTT.EMP TO SA

    B.GRANT UPDATE ON SCOTT.EMP(SAL) TO SA

    C.GRANT UPDATE (SAL) ON SCOTT.EMP TO SA

    D.GRANT MODIFY ON SCOTT.EMP(SAL) TO SA


    参考答案:B

  • 第5题:

    以下查询语句合法的是哪三项?()

    A.select empno ,sum(sal) from scott.emp group by deptno

    B.select * from scott.emp

    C.select sum(sal) from scott.emp group by deptno

    D.select count(empno) from scott.emp