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;
第1题:
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;
第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降序创建了一个唯一索引
第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);
第4题:
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
第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