[discrete]
[[esql-mv_min]]
=== `MV_MIN`

*Syntax*

[.text-center]
image::esql/functions/signature/mv_min.svg[Embedded,opts=inline]

*Parameters*

`v`::
Multivalue expression.

*Description*

Converts a multivalued expression into a single valued column containing the
minimum value.

include::types/mv_min.asciidoc[]

*Examples*

[source.merge.styled,esql]
----
include::{esql-specs}/math.csv-spec[tag=mv_min]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/math.csv-spec[tag=mv_min-result]
|===

It can be used by any column type, including `keyword` columns. In that case,
it picks the first string, comparing their utf-8 representation byte by byte:

[source.merge.styled,esql]
----
include::{esql-specs}/string.csv-spec[tag=mv_min]
----
[%header.monospaced.styled,format=dsv,separator=|]
|===
include::{esql-specs}/string.csv-spec[tag=mv_min-result]
|===
