NTILE
Examples
select
id,
salary,
rank() over (order by salary),
ntile(3) over (order by salary)
from employee
order by salary;
ID SALARY RANK NTILE == ====== ==== ===== 3 8.00 1 1 4 9.00 2 1 1 10.00 3 2 5 10.00 3 2 2 12.00 5 3