SQL Ranking Functions: ROW_NUMBER, RANK, DENSE_RANK, and NTILE | CodeSignal Learn