1.

Which of the following is the simplest ranking function?(a) RANK(b) NTILE(c) ROW_NUMBER(d) None of the mentionedI have been asked this question during an internship interview.I want to ask this question from Ranking topic in section Manipulating Data with Select of SQL Server

Answer»

Right choice is (c) ROW_NUMBER

Explanation: The ROW_NUMBER RANKING function is the SIMPLEST of the ranking functions.Its PURPOSE in life is to provide consecutive numbering of the rows in the result set by the order selected in the OVER clause for each PARTITION SPECIFIED in the OVER clause.



Discussion

No Comment Found

Related InterviewSolutions