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

# maxSimpleState

> maxSimpleState コンビネータの使用例

<div id="description">
  ## 説明
</div>

[`SimpleState`](/ja/reference/functions/aggregate-functions/combinators#-simplestate) コンビネータは、[`max`](/ja/reference/functions/aggregate-functions/max)
関数に適用でき、すべての入力値の中で最大の値を返します。返される結果の
型は `SimpleAggregateState` です。

<div id="example-usage">
  ## 使用例
</div>

[`minSimpleState`](/ja/guides/clickhouse/examples/aggregate-function-combinators/minSimpleState#example-usage) にある例では、
`maxSimpleState` と `minSimpleState` の両方の使い方を示しています。

<div id="see-also">
  ## 関連項目
</div>

* [`max`](/ja/reference/functions/aggregate-functions/max)
* [`SimpleState コンビネータ`](/ja/reference/functions/aggregate-functions/combinators#-simplestate)
* [`SimpleAggregateFunction type`](/ja/reference/data-types/simpleaggregatefunction)
