|
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
Term: RANK
Definition: RANK (expression) WITHIN GROUP (ORDER_BY expression [ASC | DESC] NULLS [FIRST | LAST] ) Used as an Analytic function: RANK () OVER (PARTITION BY expression ORDER_BY expression) Example Usage: The below SQL query uses demonstrates analytic behavior of RANK function. It ranks the salary of the employees working in the same department. SELECT DEPT, EMPNO, RANK() OVER Related Links:
Related Code Snippets:
|
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2024 psoug.org |