It may be helpful for the readers to know on how to get the value for the percent_rank, such as a formula like this: PERCENT_RANK() = (RANK() – 1) / (Total Rows – 1), which requires to rank each row in the result set or partition set first.
↧