> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/array/array-min",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for ARRAY_MIN function

# ARRAY_MIN

Returns the minimum element in an array.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
ARRAY_MIN(<array>)
```

## Parameters

| Parameter | Description                                  | Supported input types |
| :-------- | :------------------------------------------- | :-------------------- |
| `<array>` | The array or array-type column to be checked | `ARRAY`               |

## Return Type

Same as the element type of the array.

## Example

The following example calculates the minimum number in the `levels` array:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT
	ARRAY_MIN([ 1, 2, 3, 4 ]) AS levels;
```

**Returns**: `1`
