PostgreSQL - Window Functions in PostgreSQL
What will be the output of this query?
Given scores: 50, 40, 40, 30.
SELECT name, score, DENSE_RANK() OVER (ORDER BY score DESC) AS dense_rank FROM players;
Given scores: 50, 40, 40, 30.
