0 votes
in Oracle by
Explain the difference between RANK and DENSE_RANK functions in Oracle SQL.

1 Answer

0 votes
by
RANK and DENSE_RANK both assign rankings to result rows.

With RANK, when two or more rows have the same values, they’ll be assigned the same rank, and the subsequent rank will be skipped.

Meanwhile, DENSE_RANK provides a consecutive ranking and doesn’t leave gaps in ranking even when duplicate values exist.

Related questions

0 votes
asked May 11, 2020 in Oracle by JackTerrance
0 votes
asked Jan 23 in Oracle by SakshiSharma
...