Product Solutions Support
Try MemSQL

MIN

Aggregate function. Returns the lowest value observed in all rows in an aggregation. “Lowest” is determined by the collation rules of the data passed in.

Info

This aggregate function is not to be confused with LEAST, which is a non-aggregate function returning the lowest value in its list of arguments.

MIN ( expression )

Arguments

Return Type

The lowest value, in the type of the input.

Examples

memsql> select min(person_id) from people;
+----------------+
| min(person_id) |
+----------------+
|              0 |
+----------------+

memsql> select min(first_name) from people;
+-----------------+
| min(first_name) |
+-----------------+
| Aahab           |
+-----------------+
Was this article useful?