Oracle CUME U DIST函数

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle CUME U DIST函数相关的知识,希望对你有一定的参考价值。

A few examples of the CUME_DIST function.
  1. SELECT CUME_DIST(300) WITHIN GROUP (ORDER BY fees_paid) AS cume_dist_test
  2. FROM student;
  3.  
  4. SELECT CUME_DIST(300, 200) WITHIN GROUP (ORDER BY fees_paid, fees_required) AS cume_dist_test
  5. FROM student;
  6.  
  7.  
  8. SELECT first_name, last_name, fees_paid,
  9. CUME_DIST() OVER (ORDER BY fees_paid) AS cume_dist_test
  10. FROM student;
  11.  
  12.  
  13. SELECT first_name, last_name, fees_paid,
  14. CUME_DIST() OVER (PARTITION BY address_state ORDER BY fees_paid) AS cume_dist_test
  15. FROM student;

以上是关于Oracle CUME U DIST函数的主要内容,如果未能解决你的问题,请参考以下文章

Hive学习之路 (十五)Hive分析窗口函数 CUME_DIST和PERCENT_RANK

如何在熊猫中获得与 cume_dist 等效的 SQL?

Oracle 分析函数的汇总

oracle很有用的统计函数rank和cume

cume_dist(),允许并列名次复制名次自动空缺,取并列后较大名次,结果如22355778……

spark2.3 SQL内置函数——Date window functions