Many relational database management systems (RDBMSs) provide us with a range of window functions.
The CUME_DIST()
function is a window function that’s commonly implemented in RDBMSs for the purpose of calculating the cumulative distribution across a data set. In other words, it calculates the relative position of a specified value in a group of values.