1.

______________ returns the rank of rows within the partition of a result set, without any gaps in the ranking.(a) RANK(b) NTILE(c) DENSE_RANK(d) ROW_NUMBERI had been asked this question in an interview for job.The question is from Builtin Functions in division Laying the Foundation of SQL Server

Answer» RIGHT ANSWER is (c) DENSE_RANK

The EXPLANATION is: DENSE_RANK function makes the RANK of a row is one plus the number of distinct ranks that COME before the row in question.


Discussion

No Comment Found

Related InterviewSolutions