统计考勤报表 oracle对多个列求和 sum() 函数
生活随笔
收集整理的這篇文章主要介紹了
统计考勤报表 oracle对多个列求和 sum() 函数
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
oracle數(shù)據(jù)庫對test_table表的三個列count1,count2,count3求sum的兩種sql,做個記錄
第一種
select sum (case when count1 is not null then count1 when? count2 is not null then count2 when count3 is not null? then count3 else '0' end ) a from test_table
第二種
?
總結(jié)
以上是生活随笔為你收集整理的统计考勤报表 oracle对多个列求和 sum() 函数的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 比尔·盖茨买百万亩农地成美“头号地主”,
- 下一篇: 商务参考体系结构:企业对消费者 (B2C