▲求按金额分类计费的SQL▲ select sum(decode(sign(amount-10000),-1,5,decode(sign(amount-50000),-1,amount*0.0003,decode(sign(amount-100000),-1,amount*0.0002,20)))) from tbname; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select (case when amount<10000 then 5 when amount<50000 and amount>10000 then amount*0.03/100 when amount<100000 and amount>50000 then amount*0.02/100 else 20 end) feefrom table 代码问题 求找一个简单存储过程错误!多谢! ora-12523错误,但是监听和net服务正常。 测试一下你的sql功底,高手请进... oracle 的大数据多表查询怎么优化 oracle Oracle 9i安装问题 急等 “创建的触发器带有编译错误”是怎么回事? generic connectivity??怎么用?? 关于自动导入DMP文件的问题 System.Exception: ORA-06550: 如何解决 真的很急, help! 想深入了解关于数据块
when amount<50000 and amount>10000 then amount*0.03/100
when amount<100000 and amount>50000 then amount*0.02/100
else 20
end) fee
from table