Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how do u implement dense rank in bo reports?

Answer Posted / shikha

The DENSE_RANK function computes the rank of a row in an
ordered group of rows.Rows with equal values for the
ranking criteria receive the same rank.

For eg.

To Show the set of sales people who make the top 3
salaries - that is, find the set of distinct salary
amounts, sort them, take the largest three, and give me
everyone who makes one of those values.

SELECT * FROM (
SELECT deptno, ename, sal,
DENSE_RANK()
OVER (
PARTITION BY deptno ORDER BY sal desc
) TopN FROM emp
)
WHERE TopN <= 3
ORDER BY deptno, sal DESC
/

DEPTNO ENAME SAL TOPN
---------- ---------- ---------- ----------
10 KING 5000 1
CLARK 2450 2
MILLER 1300 3

20 SCOTT 3000 1 <--- ! (in
case of rank
JONES will have
3 and dense
rank will have 2)
FORD 3000 1 <--- !
JONES 2975 2
ADAMS 1100 3

30 BLAKE 2850 1
ALLEN 1600 2
30 TURNER 1500 3

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How were the reports scheduled and how to resolve unexecuted documents?

2634


What Is Snow Flake Schema?

1157


Hi, What is the best answer for tell me about yourself for 2 years experience in bo developing.

4270


Explain the difference between detect alias and detect context?

1058


If I have three predefined prompts. In a report it will come randomly. How they will come in a specified format?

1189


What is the difference between the public object&schema object?

1016


When we use aggregate awareness function in designer?

919


Explain is data mart?

971


What is the functional & architectural differences between business objects and web intelligence reports?

2371


What we need to discuss with designer before starting the universe designing.

2208


How to execute the plsql procedure from the report by clicking with mouse?

1089


How to do impact analysis for a change in Database field size which is assigned to a Dimension object and used in 10 universes

2395


How to generate the report from excel sheet?

1129


Give some information on report bursting?

942


What is the difference between absolute and relative div positioning?

1001