Oracle Partition Outer Join 稠化报表
生活随笔
收集整理的這篇文章主要介紹了
Oracle Partition Outer Join 稠化报表
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
partition outer join實現將稀疏數據轉為稠密數據,舉例:
with t as(select deptno, job, sum(sal) sum_sal from emp group by deptno, job), tt as(select distinct job from t) select b.deptno, a.job, sum_salfrom tt aleft join t b partition by (b.deptno)on a.job = b.job數據顯示結果:
?
按照所有deptno和job顯示出sal總值,沒有對應值顯示為空。
具體資料參考:
http://blog.sina.com.cn/s/blog_4cef5c7b01016lm5.html
轉載于:https://www.cnblogs.com/mellowsmile/p/4863561.html
總結
以上是生活随笔為你收集整理的Oracle Partition Outer Join 稠化报表的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C实战:项目构建Make,Automak
- 下一篇: Hadoop系统架构