单选题

对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()

A. select sal,decode(salu003e3000,'A',salu003e2000,'B','C') grade from emp;
B. select sal,decode(sal,3000,'A',2000,'B','C') grade from emp;
C. select sal,(case when salu003e3000 then 'A' when salu003e2000 then 'B' else 'C' end) grade from emp;
D. select sal,(if salu003e3000 then 'A' elsif salu003e2000 then 'B' else 'C' end if) grade from emp;

查看答案
该试题由用户529****75提供 查看答案人数:12067 如遇到问题请 联系客服
正确答案
该试题由用户529****75提供 查看答案人数:12068 如遇到问题请联系客服

相关试题

换一换
单选题
对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()
A.select sal,decode(salu003e3000,'A',salu003e2000,'B','C') grade from emp; B.select sal,decode(sal,3000,'A',2000,'B','C') grade from emp; C.select sal,(case when salu003e3000 then 'A' when salu003e2000 then 'B' else 'C' end) grade from emp; D.select sal,(if salu003e3000 then 'A' elsif salu003e2000 then 'B' else 'C' end if) grade from emp;
答案
单选题
对于雇员表(EMP)中的员工薪水(SAL)进行分级,3000元以上的为A级,2000元以上到3000元为B级,2000元及以下为C级,以下哪此操作能实现以上要求()
A.select sal,decode(sal>3000,'A',sal>2000,'B','C') grade from emp; B.select sal,decode(sal,3000,'A',2000,'B','C') grade from emp; C.select sal,(case when sal>3000 then 'A' when sal>2000 then 'B' else 'C' end) grade from emp; D.select sal,(if sal>3000 then 'A' elsif sal>2000 then 'B' else 'C' end if) grade from emp;
答案
单选题
emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()
A.v_sal emp%rowtype; B.v_sal emp.sal%type; C.v_sal emp.sal.%type; D.v_sal %type(emp.sal); E.v_sal (emp.sal)%type;
答案
单选题
对于以下SQL语句说法正确的是() SELECT ename FROM emp WHERE sal IN (SELECT MAX(sal) FROM emp GROUP BY deptno);
A.这个语句是符合语法的 B.这个语句是不能执行的,因为缺少HAVING子句 C.这个语句是不能执行的,因为分组的条件列不在SELECT列表中 D.这个语句是不能执行的,因为GROUP BY子句应该在主查询中,而不是在子查询中 E.在主查询的WHERE条件中,不应该用IN,而应该用等号
答案
单选题
已知员工表emp(empno,ename,job,sal)其中empno员工编号,ename员工姓名,job员工的职位,sal员工的工资。若要查看工资大于2000的员工的信息,则正确的sql语句是()
A.select * from emp; B.select * from emp where sal>2000; C.select * emp where sal>2000 ; D.select * from emp sal>2000;
答案
单选题
emp表是雇员信息表,以下哪个变量可以存放emp表中的一条记录()
A.v_record emp%type; B.v_record emp%recordtype; C.v_record emp%record_type; D.v_record emp%rowtype;
答案
单选题
emp表是雇员信息表,以下哪个变量可以存放emp表中的一条记录()
A.v_record emp%type; B.v_record emp%recordtype; C.v_record emp%record_type; D.v_record emp%rowtype; E.v_record emp%row_type;
答案
单选题
已知员工表emp(empno,ename,job,sal,comm,deptno)其中empno员工编号,ename员工姓名,job员工的职位,sal员工的工资,comm奖金,deptno员工所在部门编号。查询奖金为空的员工信息,则正确的sql语句是()
A.select * from emp where comm=null; B.select * from emp where comm is not null; C.select * from emp where comm null; D.select * from emp where comm is null;
答案
单选题
在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;
答案
单选题
授予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
答案
热门试题
猎头助理达标绩效为员工薪水的(),猎头部员工按照()为单位进行考核 下列时间段要付员工薪水的是() 执行如下两个查询,结果为() Select ename name,sal salary from emp order by salary Select ename name,sal“salary”from emp order by sal asc 已知员工表emp(empno,ename,job,sal,comm,deptno)其中empno员工编号,ename员工姓名,job员工的职位,sal员工的工资,comm奖金,deptno员工所在部门编号。查询工资在2500和4000之间(包括2500和4000)的员工姓名,工资和奖金,正确的sql语句是() SELECT COUNT(SAL) FROM EMP GROUP BY DEPTNO;意思是________。 将员工号为1007的员工薪水改为3500,职位改为Programmer,下列SQL语句正确的是() 在Oracle中,你需要创建索引提高薪水审查的性能,该审查要对员工薪水提高12个百分点后进行分析处理,下面哪个createindex命令能解决此问题()。 在Oracle中,你需要创建索引提高薪水审查的性能,该审查要对员工薪水提高12个百分点后进行分析处理,下面哪个createindex命令能解决此问题()。 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 above syntax to calculate the annual compensation as "monthly salary plus a monthly bonus of $100, multiplied by 12"?() emp表中,比“FORD”入职晚的员工信息,下列SQL语句正确的是() SELECT COUNT(*) FROM emp;这条SQL语句执行,如果员工表中没有任何数据,那么ResultSet中将会是 A redaction policy was added to the SAL column of the SCOTT.EMP table: All users have their default set of system privileges. For which three situations will data not be redacted?() 已有两个表:表emp中有三个字段,eno为char类型,enamel为varchar类型,ename为int类型,表emp2与表emp字段结构相同,下面往emp中插入数据记录的语句不正确的是 某审计人员审查公司的支出结构时,发现公司对新雇员支付的薪水比同等职位上的老员工少,这一做法:() The EMP table exists in your schema. You want to execute the following query: SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '6' MINUTE) WHERE ename = 'ALLEN'; What are the minimum requirements for the statement to execute successfully? () The EMP table exists in your schema. You want to execute the following query: SELECT ename, sal FROM emp AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '6' MINUTE) WHERE ename = 'ALLEN'; What are the minimum requirements for the statement to execute successfully? () 对于物业管理企业中员工薪酬管理的目标,以下叙述错误的是()。 员工薪酬水平可以按(  )进行统计。 职工薪酬的分配,应通过职工薪酬分配表进行。 查询出EMP表中COMM字段为空的记录()
购买搜题卡 会员须知 | 联系客服
会员须知 | 联系客服
关注公众号,回复验证码
享30次免费查看答案
微信扫码关注 立即领取
恭喜获得奖励,快去免费查看答案吧~
去查看答案
全站题库适用,可用于E考试网网站及系列App

    只用于搜题看答案,不支持试卷、题库练习 ,下载APP还可体验拍照搜题和语音搜索

    支付方式

     

     

     
    首次登录享
    免费查看答案20
    微信扫码登录 账号登录 短信登录
    使用微信扫一扫登录
    登录成功
    首次登录已为您完成账号注册,
    可在【个人中心】修改密码或在登录时选择忘记密码
    账号登录默认密码:手机号后六位