zy_dh 2015-06-03 00:56 采纳率: 0%
浏览 1570

这是一个oracle计税公式,运行时出错missing right parenthesis

update 表名 t set 扣税= case (t.计税工资)
when ((t.计税工资 <= 1500) and (t.计税工资 > 0)) then t.计税工资*0.03
when ((t.计税工资 <= 4500) and (t.计税工资 > 1500)) then t.计税工资*0.1-105
when ((t.计税工资 <= 9000) and (t.计税工资 > 4500)) then t.计税工资*0.2-555
when ((t.计税工资 <= 35000) and (t.计税工资 > 9000)) then t.计税工资*0.25-1005
when ((t.计税工资 <= 55000) and (t.计税工资 > 35000)) then t.计税工资*0.30-2775
else 0 end
where t.工资类别='月薪'
请哪位高手指点一下,谢谢!

  • 写回答

3条回答 默认 最新

  • Lizzy莲 2015-06-03 01:00
    关注

    update 表名 t set 扣税= case (t.计税工资)
    when ((t.计税工资 <= 1500) and (t.计税工资 > 0)) then t.计税工资*0.03

    case后面的 (t.计税工资) 去掉

    评论

报告相同问题?

悬赏问题

  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办
  • ¥15 kylin启动报错log4j类冲突
  • ¥15 超声波模块测距控制点灯,灯的闪烁很不稳定,经过调试发现测的距离偏大