> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-fbfa8bee.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# maxSimpleState

> Exemplo de uso do combinador maxSimpleState

<div id="description">
  ## Descrição
</div>

O combinador [`SimpleState`](/pt-BR/reference/functions/aggregate-functions/combinators#-simplestate) pode ser aplicado à função [`max`](/pt-BR/reference/functions/aggregate-functions/max)
para retornar o maior valor entre todos os valores de entrada. Ele retorna o
resultado com o tipo `SimpleAggregateState`.

<div id="example-usage">
  ## Exemplo de uso
</div>

O exemplo mostrado em [`minSimpleState`](/pt-BR/guides/clickhouse/examples/aggregate-function-combinators/minSimpleState#example-usage)
demonstra o uso de `maxSimpleState` e `minSimpleState`.

<div id="see-also">
  ## Veja também
</div>

* [`max`](/pt-BR/reference/functions/aggregate-functions/max)
* [`SimpleState combinador`](/pt-BR/reference/functions/aggregate-functions/combinators#-simplestate)
* [`SimpleAggregateFunction type`](/pt-BR/reference/data-types/simpleaggregatefunction)
