PostgreSQL - Window Functions in PostgreSQL
Why does the
ROW_NUMBER() window function produce different results than RANK() when there are ties in the ordering column?