1. Home
  2. Data Science
  3. SQL for Data Analysis
  4. What distinguishes RANK() from DENSE_RANK()?

Added 30 Nov -0001

What distinguishes RANK() from DENSE_RANK()?

  1. RANK gives tied rows different ranks
  2. DENSE_RANK leaves gaps after ties
  3. DENSE_RANK ignores the ORDER BY
  4. RANK leaves gaps after ties Correct answer

Correct answer

D. RANK leaves gaps after ties

14 views

MCQSEXAM

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

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More SQL for Data Analysis MCQs

Practise all SQL for Data Analysis MCQs

Similar MCQs