OracleWindow FunctionsFIRST
RATIO_TO_REPORT

FIRSTWindow Functions

LAST

Applies an aggregate function to the first group in the sorted order.

Syntax

agg_fn() KEEP (DENSE_RANK FIRST ORDER BY ...)

Example

Enter values below to update the example in real time.

salary
hire_date
first_hire_salary
employees
SELECT MIN(salary) KEEP (DENSE_RANK FIRST ORDER BY hire_date) AS first_hire_salary
FROM employees;