MIN returns the minimum value of all the value expressions evaluated for each row in the aggregation. When used without the OVER clause, MIN is considered an aggregate function. When used with the OVER clause, it is an analytic function.
For string values, MIN is determined by which string is first in the collating sequence.
When used as an analytic function, MIN will return null if the window being evaluated (or in the case of a PARTITION BY, the partition within the window matching the input row) contains no rows.