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

# aggregate_min_max

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max.rs#L24-L35)
pub async fn [aggregate\_min\_max](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max.md#method.aggregate_min_max)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Calculate the min and max values of a column in a datasetCalculates and returns the minimum and maximum values of a particular column in a table.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`column_name` - Name of a column or an expression of one or more column on which the min-max will be calculated.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max.rs#L51-L69)
pub async fn [aggregate\_min\_max\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max.md#method.aggregate_min_max_with_opts)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [AggregateMinMaxRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Calculate the min and max values of a column in a datasetCalculates and returns the minimum and maximum values of a particular column in a table.

##### Arguments

<ul>
  <li>`table_name` - Name of the table on which the operation will be performed. Must be an existing table, in \[schema\_name.]table\_name format, using standard name resolution rules.</li>
  <li>`column_name` - Name of a column or an expression of one or more column on which the min-max will be calculated.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max.rs#L72-L83)
pub async fn [aggregate\_min\_max\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max.md#method.aggregate_min_max_raw)( \&self, request: &[AggregateMinMaxRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AggregateMinMaxRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxRequest) to the `/aggregate/minmax` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/aggregate_min_max.rs#L87-L99)
pub async fn [aggregate\_min\_max\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/aggregate-min-max.md#method.aggregate_min_max_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[AggregateMinMaxRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[AggregateMinMaxResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`AggregateMinMaxRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.AggregateMinMaxRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.