单选题

对于雇员表(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;

查看答案
该试题由用户356****47提供 查看答案人数:44423 如遇到问题请联系客服
正确答案
该试题由用户356****47提供 查看答案人数:44424 如遇到问题请联系客服
热门试题
猎头助理达标绩效为员工薪水的(),猎头部员工按照()为单位进行考核 下列时间段要付员工薪水的是() 已知员工表emp(empno,ename,job,sal,comm,deptno)其中empno员工编号,ename员工姓名,job员工的职位,sal员工的工资,comm奖金,deptno员工所在部门编号。查询工资在2500和4000之间(包括2500和4000)的员工姓名,工资和奖金,正确的sql语句是() 执行如下两个查询,结果为() Select ename name,sal salary from emp order by salary Select ename name,sal“salary”from emp order by sal asc 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中将会是 已有两个表:表emp中有三个字段,eno为char类型,enamel为varchar类型,ename为int类型,表emp2与表emp字段结构相同,下面往emp中插入数据记录的语句不正确的是 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?() 某审计人员审查公司的支出结构时,发现公司对新雇员支付的薪水比同等职位上的老员工少,这一做法:() 对于物业管理企业中员工薪酬管理的目标,以下叙述错误的是()。 员工薪酬水平可以按(  )进行统计。 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次免费查看答案
微信扫码关注 立即领取
恭喜获得奖励,快去免费查看答案吧~
去查看答案
全站题库适用,可用于聚题库网站及系列App

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

    支付方式

     

     

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