| Oracle® Database SQL Language Reference 11g Release 2 (11.2) Part Number E26088-01 |
|
|
PDF · Mobi · ePub |

LEAST returns the least of the list of exprs. All exprs after the first are implicitly converted to the data type of the first expr before the comparison. Oracle Database compares the exprs using nonpadded comparison semantics. If the value returned by this function is character data, then its data type is always VARCHAR2.
See Also:
Table 3-10, "Implicit Type Conversion Matrix" for more information on implicit conversion, "Floating-Point Numbers" for information on binary-float comparison semantics, and "Data Type Comparison Rules"The following statement selects the string with the least value:
SELECT LEAST('HARRY','HARRIOT','HAROLD') "Least"
FROM DUAL;
Least
------
HAROLD