min
relationalai.semantics.std.aggregates
min(*args: AggValue) -> AggregateFind the minimum value.
Parameters
Section titled “Parameters”
(*argsAggValue, default:()) - Values to find minimum from.
Returns
Section titled “Returns”Aggregate- AnAggregaterepresenting the computation of the minimum value. Returns the same type as the input.
Examples
Section titled “Examples”Find minimum salary:
>>> select(aggregates.min(Employee.salary))Find minimum price per category:
>>> select(Category, aggregates.min(Product.price).per(Category).where(Product.category == Category))