The minimum function returns the lowest value in the specified column for all occurrences with the same GROUP BY value.
Syntax:
►►─┬─ MIN ─────┬─ (value) ────────────────────────────────────────────────────►◄ ├─ MINIMUM ─┤ ├─ LOV ─────┤ └─ LOVAL ───┘
Invocation names:
MIN LOV MINIMUM LOVAL
Parameters:
The column or expression for which the minimum value is calculated.
Example:
This example calculates the lowest salary in each department.
select min(salary) as 'low salary' from employee LOW SALARY = '17000'
|
Copyright © 2013 CA.
All rights reserved.
|
|