Oracle CUME U DIST函数
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle CUME U DIST函数相关的知识,希望对你有一定的参考价值。
A few examples of the CUME_DIST function.
SELECT CUME_DIST(300) WITHIN GROUP (ORDER BY fees_paid) AS cume_dist_test FROM student; SELECT CUME_DIST(300, 200) WITHIN GROUP (ORDER BY fees_paid, fees_required) AS cume_dist_test FROM student; SELECT first_name, last_name, fees_paid, CUME_DIST() OVER (ORDER BY fees_paid) AS cume_dist_test FROM student; SELECT first_name, last_name, fees_paid, CUME_DIST() OVER (PARTITION BY address_state ORDER BY fees_paid) AS cume_dist_test FROM student;
以上是关于Oracle CUME U DIST函数的主要内容,如果未能解决你的问题,请参考以下文章
Hive学习之路 (十五)Hive分析窗口函数 CUME_DIST和PERCENT_RANK