Skip to main content Skip to complementary content

arrayMax

Returns the highest value in the array.

Arguments

Array of numeric values.

Examples

Find the highest score in an array:
FROM game_results
SELECT {
  player_id,
  max_score = arrayMax(scores)
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!