hard20 pts · first answer countswindow-functionssqlranking
NULL score ranked first
In PostgreSQL, some players have a NULL score. Who gets rank 1 here?
SELECT player, RANK() OVER (ORDER BY score DESC) AS rnk FROM results;
Discussion 0
Join free to post in the discussion.