1.

Point out the wrong statement.(a) The ROW_NUMBER function simply assigns sequential numbering to the records of a result-set or to the records within groups of a result-set(b) OVER clause is not required in all the ranking functions(c) SQL Server introduced four different ranking functions(d) All of the mentionedI have been asked this question during an interview.My query is from Ranking topic in portion Manipulating Data with Select of SQL Server

Answer»

Right ANSWER is (B) OVER clause is not required in all the ranking functions

To elaborate: OVER clause is required in all the ranking functions and with that you specify the partitioning and ORDERING of RECORDS before the ranking functions are EVALUATED.



Discussion

No Comment Found

Related InterviewSolutions