如何开发统计模型以识别Peoplesoft系统中的问题过程,该模型应比最近运行赋予更多权重

问题描述

以下查询仅给出加权平均值与正常平均值之间的微小差异,什么是好的模型以及如何在Peoplesoft中获得工作失败的可能性

 SELECT DISTINCT TRUNC(SUM(ntile1) over(partition BY prcsname,status order by status)/SUM(ntile1) over(partition BY prcsname),2)*100 as weighted_pecentage,TRUNC(count(1) over(partition BY prcsname,status order by status)/count(1) over(partition BY prcsname),2)*100 as normal_percentage,prcsname,status
 FROM
 (SELECT 100-ntile(100) over (partition by prcsname order by prcsname,prcsinstance DESC)AS ntile1,DECODE(runstatus,9,'Success','UnSuccess') AS status,p.*
 FROM psprcsrqst p
 WHERE prcsname LIKE '%'
 ORDER BY
 prcsinstance desc,status DESC
 ) p2 order by prcsname,status;
 
 !! detail
 SELECT 100-ntile(100) over (partition by prcsname order by prcsinstance desc )AS ntile1,p.*
 FROM psprcsrqst p
 WHERE prcsname LIKE '%'
 ORDER BY prcsname,prcsinstance desc,status DESC;

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...