Databases · Middle · Question 26 of 75

What is the difference between RANK() and DENSE_RANK()?

Explanation

ROW_NUMBER() gives every row a unique number even for ties, in an order you should make deterministic with extra sort columns.

Further reading

Problem with a question

Databases · Middle · question 26

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz