作业帮 > 综合 > 作业

decode函数用法在emp表中,为所有人长工资,标准是:10部门长10%;20部门长15%;30部门长20%其他部门长

来源:学生作业帮 编辑:灵鹊做题网作业帮 分类:综合作业 时间:2024/05/28 18:19:47
decode函数用法
在emp表中,为所有人长工资,标准是:10部门长10%;20部门长15%;30部门长20%其他部门长18%(要求用DECODE函数,介绍如下:DECODE(value,if1,then1,if2,then2,if3,then3,...else )),我用update emp set sal=sal*decode(deptno,10,1.1,20,1.15,30,1.2,1.18);为什么结果和我我预想的不一样
decode函数用法在emp表中,为所有人长工资,标准是:10部门长10%;20部门长15%;30部门长20%其他部门长
加where条件