- Rank(), Dense_Rank() are OLAP Functions
- They are used to find ranks for a table based on certain business logic.
- Syntaxes:
- Rank() over ( expr );
- Dense-Rank() over ( expr );
- Rank() over ( expr );
- The difference between rank and dense rank is that,Rank : Generate gap when there are same ranks.
Dense_Rank: Doesn't generate a gap when there are same ranks. - These functions must not be used in where clause.
Hi Friends, I started this blog to share the knowledge which i have in Oracle (OLTP) and Datawarehousing (OLAP) databases. Please post your comments and share your views and opinions..
Tuesday, 27 December 2011
Rank vs Dense_Rank
Subscribe to:
Post Comments (Atom)
Shashikanth, you are awesome! Nice post, and a good one here too:
ReplyDeletedense_rank and rank functions