Rank functions label peer rows from the order key.
highlighted = computed this step
RANK and DENSE_RANK
RANK and DENSE_RANK use the ORDER BY key to find peers.
same order key means peer rows
Compare rank labels
The rank table still has 5 rows.
ranked rows=5
Window-function examples are tiny finite table transforms; SQL dialects, NULL ordering, frames beyond prefix rows, optimizer behavior, performance, and product behavior are out of scope.
Read peers
Rows with the same order key share a rank; dense rank closes the gap.
peer rows share labels
Summary
The tie-breaker fixes display order but the rank peer key remains the ORDER BY key.