本文介绍了案例陈述逻辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我有一个ETL逻辑,其案例声明如下: i have an ETL logic with a case statement like This : CASE WHEN ( AVG ( mydata 。 percentScore )) < 0.98 那么 'Audit' &NBSP;CASEWHEN (AVG(mydata.percentScore))< 0.98 THEN'Audit' WHEN ( CAST ( SUM ( CASE WHEN mydata 。 questionAnswer = '审核' 那么 1 ELSE 0 END ) AS float )/ 计数 (*)) < 0.08 那么 'Audit' WHEN(CAST(SUM(CASEWHEN mydata.questionAnswer= 'Audit'THEN 1 ELSE 0 END)AS float)/Count(*))< 0.08 THEN'Audit' &NBSP; WHEN ( CAST ( SUM ( CASE WHEN mydata 。 questionAnswer = 'QC' THEN 1 ELSE 0 END ) AS float ) / 计数 (*)) > 0.40 那么 'QC Lite' ELSE "QC" END AS AssignReviewType WHEN(CAST(SUM(CASEWHEN mydata.questionAnswer= 'QC'THEN 1 ELSE 0 END)AS float)/Count(*))> 0.40 THEN'QC Lite' ELSE 'QC'END AS AssignReviewType FROM data mydataFROM data mydata现在我想更新这个逻辑 ''CASE WHEN(AVG(mydata.percentScore))< 0.98然后'审核''' 要成为 百分数低于98%,然后8%去审计,其余去QCnow i want to update this logic ''CASE WHEN (AVG(mydata.percentScore)) < 0.98 THEN 'Audit' '' to be percentscore is below 98%, then 8% go to Audit and the remaining go to QC请问我怎么能重写这个。please how can i rewrite this.谢谢推荐答案不确定我们是否理解您的问题。Not sure we understand your question. 这篇关于案例陈述逻辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-21 03:38