explain the ROLLUP, CUBE, RANK AND DENSE_RANK FUNCTIONS OF
ORACLE 8I

Answers were Sorted based on User's Feedback



explain the ROLLUP, CUBE, RANK AND DENSE_RANK FUNCTIONS OF ORACLE 8I..

Answer / vikram

Diff between RANK() and DENSE_RANK():-
------------*******-----************-------

RANK():-
---> It leaves a gap in the sequence of ranking in the
event of tie.
DENSE_RANK():-
---> It doesn't leave a gap in the sequence of ranking
in the event of tie.

EX:-
empno ename RANK DENSE_RANK
101 AAA 1 1
102 BBB 2 2
102 BBB 2 2
102 BBB 2 2
103 CCC -->5 --> 3
103 CCC 5 3
104 DDD -->7 --> 4

Is This Answer Correct ?    10 Yes 0 No

explain the ROLLUP, CUBE, RANK AND DENSE_RANK FUNCTIONS OF ORACLE 8I..

Answer / satya

ROLLUP is used to Calculate The subtotals And Grand Total
Based On The Groupby Function.
This ROLLUP is used after the GROUP BY function.
CUBE generates a result set that represents aggregates for
all combinations of values in the selected columns.
RANK Function Is Used To Give The Ranks,But It miss Some
Ranks When Both Are Getting Same Ranks.
DENSE_RANK function Won't Give The Gaps Between The Ranks.

Is This Answer Correct ?    8 Yes 3 No

explain the ROLLUP, CUBE, RANK AND DENSE_RANK FUNCTIONS OF ORACLE 8I..

Answer / friend

ROLL UP IS USED TO FIND THE SUB TOTALS ,IT IS USED AFTER
GROUP BY FUNCTION,AND"CUBE"IS ALSO HAVING THE SAME
MEANING,AND RANK FUNC IS USED TO FIND THE RANKS AND IT
GIVES THE SAME RANK IF DATA HAVING SAME DATA,AND DENSE
_RANK ALSO SAME AS RANK BUT IT WILL GIVE DISTINCT RANKS IF
AT ALL IF THE DATA HAVING SAME DATA.

Is This Answer Correct ?    8 Yes 7 No

Post New Answer

More Data Warehouse General Interview Questions

What are the stages of datawarehousing?

0 Answers  


What is Active Datawarehousing?

0 Answers  


Explain what are the mapping paramaters and maping variables?

0 Answers  


What are the advantages and disadvantages of using stored procedures versus calling sql inline in cold fusion?

0 Answers  


After the complete generation of a report who will test the report and who will analyze it?

0 Answers  






what is the difference between DSS and ODS ?

2 Answers   IBM, Satyam,


How we are using this function?

0 Answers  


what role views play in dimensional modeling?

1 Answers   TCS, Zensar,


What are the advantages of raid 1, 1/0, and 5. What type of raid setup would you put your tx logs?

0 Answers  


What is the main difference between inmon and kimball philosophies of data warehousing?

0 Answers  


What are the different types of Fatcs? Explain with example only

3 Answers   CTS,


What is surrogate key?

5 Answers   IBM, Informatica,


Categories