This function is used to return the minimum value.
min(col)
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
col |
Yes |
Any type except BOOLEAN |
The value can be of any type except BOOLEAN. |
The return value is of the DOUBLE type.
The return type is the same as the type of col. The return rules are as follows:
select min(items) from warehouse;
The command output is as follows:
_c0 600
select warehourseId, min(items) from warehouse group by warehourseId;
The command output is as follows:
warehouseId _c1 city1 15 city2 10 city3 19