case when c.zsdecScore is null then 0 else c.zsdecScore end
select c.dutydeptname,c.dutydeptcode,c.stdscore, c.targettype,c.zsdecScore,(c.stdscore-(case when c.zsdecScore is null then 0 else c.zsdecScore end)
)/c.stdscore*100 as avg
运用三目运算符可以批量处理字段数据不正确的记录
本文介绍了一种使用SQL中的三目运算符来处理数据字段中空值或不正确值的方法,并通过具体示例展示了如何计算标准化得分与实际得分之间的百分比差距。
1442

被折叠的 条评论
为什么被折叠?



