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

How to install oracle odbc drivers?

0 Answers  


Please explain compound trigger in oracle?

0 Answers  


how to handle exceptions in post production

0 Answers  


Difference between inner join vs where ?

0 Answers  


What is Private Database Link ?

1 Answers  






What is the difference between SQL and SQL Server?

2 Answers   CTS, TCS,


HOW TO DISPLAY MAXIMUM SALARIES FROM EMP DEPARTMENT VISE ALONG WITH DEPARTMENT NAMES? E.g EMP,DEPT

5 Answers   College School Exams Tests, DELL,


What is an oracle wallet?

0 Answers  


why should i declare foreign key constraint as self relation instead of binary relation in tables ?

0 Answers   Oracle,


Explain about achiever in sql?

0 Answers  


What is data file?

0 Answers  


how to find out largest value in a table

2 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1808)
  • 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)