PERCENT_RANK
Examples
select
id,
salary,
rank() over (order by salary),
percent_rank() over (order by salary)
from employee
order by salary;
id salary rank percent_rank -- ------ ---- ------------ 3 8.00 1 0 4 9.00 2 0.25 1 10.00 3 0.5 5 10.00 3 0.5 2 12.00 5 1