min()(聚合函数)min() (aggregation function)
返回组内的最小值。Returns the minimum value across the group.
语法Syntax
summarize
min(
Expr)
summarize
min(
Expr)
参数Arguments
- Expr:用于聚合计算的表达式。Expr : Expression that will be used for aggregation calculation.
返回Returns
组内 Expr 的最小值。The minimum value of Expr across the group.
提示
这能提供该项本身的最大值或最小值 - 例如最高或最低价格。This gives you the min or max on its own - for example, the highest or lowest price. 但如果需要行中的其他列 - 例如,提供最低价格的供应商的名称 - 则需使用 arg_max 或 arg_min。But if you want other columns in the row - for example, the name of the supplier with the lowest price - use arg_max or arg_min.