1.

Point out the wrong statement.(a) RANK() returns the rank of each row in the result set of partitioned column(b) DENSE_RANK() is same as RANK() function. Only difference is returns rank without gaps(c) NTILE() distributes the columns in an ordered partition into a specified number of groups(d) ROW_NUMBER() returns the serial number of the row order by specified columnI had been asked this question by my college director while I was bunking the class.My question is based upon Ranking in division Manipulating Data with Select of SQL Server

Answer» RIGHT OPTION is (c) NTILE() distributes the columns in an ordered partition into a specified number of GROUPS

The best EXPLANATION: NTILE divides the partitioned result set into specified number of groups in an order.


Discussion

No Comment Found

Related InterviewSolutions