![]() |
|||
|
|
|||
|
||||||||||||||||||||||||||||||
|
|
|
Looking for the original pages? (formerly called "Morgan's Library") You can find them here.
Term: FIRST
Definition: [AGGREGATE FUNCTION] KEEP (DENSE_RANK FIRST ORDER BY [COLUMN | EXPRESSION] [ASC | DESC] ) In the syntax, the KEEP keyword is used as an indication that only FIRST values are returned. Note that DENSE_RANK is always used to rank the grouped rows and extract the minimum or maximum value. Notes:
Example Usage: The SQL query below displays the salary of each employee in a department. At the same time it also shows the lowest salary in their department. SELECT DEPTNO, ENAME ,SAL Related Links:
Related Code Snippets:
|
| Home : Code Library : Sponsors : Privacy : Terms of Use : Contact Us | 63 users online © 2009 psoug.org |