adspace


What is the difference between rank and dense_rank?

Answer Posted / Sukveer Singh Aswal

Rank assigns a unique number to each row in a result set based on a specified ordering, with gaps allowed if there are ties. Dense_rank assigns a unique number without any gaps when there are ties.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the ways in which dynamic sql can be executed?

1086


Why use identity in sql server?

1199


do you know how to configure db2 side of the application? : Sql server database administration

1124


Can you index views?

954


List out the different types of locks available in sql server?

1050


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1213


How raid can influence database performance?

1117


Why and when do stored procedure recompile?

1060


explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1133


What is self contained sub query?

1140


What is a coalesce function?

1283


Disadvantages of the indexes?

1223


Can one drop a column from a table?

1089


Equi join and non equi join is possible with sql server?

1134


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2295