What distinguishes RANK() from DENSE_RANK()?
-
A
RANK gives tied rows different ranks
-
B
DENSE_RANK leaves gaps after ties
-
C
DENSE_RANK ignores the ORDER BY
-
D
RANK leaves gaps after ties
Correct answer
Correct answer
D. RANK leaves gaps after ties
14 views
Explanation
RANK gives tied rows the same number but skips the following ones, while DENSE_RANK numbers them consecutively.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ