what is the use of rank function?



what is the use of rank function?..

Answer / soujanya

RANK calculates the rank of a value in a group of values.
Rows with equal values for the ranking criteria receive the
same rank. Oracle then adds the number of tied rows to the
tied rank to calculate the next rank. Therefore, the ranks
may not be consecutive numbers.

eg: SELECT RANK(15500, .05) WITHIN GROUP
(ORDER BY salary, commission_pct) "Rank"
FROM employees;

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Oracle General Interview Questions

What is the difference between formal parameters and actual parameters?

0 Answers  


select to_char('10','10') from dual This gives me an error oRA-1481 INVALID NUMBER FORMAT MODEL why? pls help

6 Answers  


how the indexes are stored in the Oracle Database?

0 Answers  


What is Row Chaining ?

3 Answers   Cognizant, CTS,


What is Water Mark in Oracle?

7 Answers   Oracle,






Can the default values be assigned to actual parameters?

1 Answers  


What are the differences between primary key and unique key?

0 Answers  


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

0 Answers  


How to use "startup" command to start default instance?

0 Answers  


interview questions with answer for cts

0 Answers   Cognizant,


How to use select statement to count the number of rows in oracle?

0 Answers  


Why does oracle 9i treat an empty string as null?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)