oracle case when 语句帮忙解决

Jerss Jerss 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Select A.StartTime as 时间分组,A.Counts 呼入总次数,nvl(B.Counts,0) 成功总次数,nvl(C.Counts,0) 失败总次数,
nvl(D.Counts,0) 转人工总次数,nvl(E.Counts,0) 转人工成功次数,
case
when nvl(D.Counts,0)=0 then 0 else nvl(E.Counts,0)*100/D.Counts end as 转人工接通率(100%) --未找到from语句
else (nvl(D.Counts,0)-nvl(E.Counts,0)) as 转人工失败次数
end
from
(select count(*) from *** )A left outer join
(select count(*) from *** )B left outer join
(select count(*) from *** )C left outer join
(select count(*) from *** )D left outer join
(select count(*) from *** )E left outer join

在线等待。。。
...全文
评论 27
收藏 已收藏
分享
返回顶部
Jerss
Oracle 高级技术 3,499 成员 18,710 内容