1.

Which of the following functions are similar?(a) RANK and NTILE(b) RANK and DENSE_RANK(c) DENSE_RANK and NTILE(d) None of the mentionedThe question was asked by my school principal while I was bunking the class.The above asked question is from Ranking in chapter Manipulating Data with Select of SQL Server

Answer» CORRECT answer is (B) RANK and DENSE_RANK

To explain: DENSE_RANK() is same as RANK() function. Only difference is returns rank WITHOUT gaps.


Discussion

No Comment Found

Related InterviewSolutions