PostgreSQL - Window Functions in PostgreSQL
What result does this query produce?
SELECT employee_id, salary, DENSE_RANK() OVER (ORDER BY salary ASC) AS rank FROM employees;
