count
relationalai.semantics.std.aggregates
count(*args: AggValue) -> AggregateCount the number of values.
Parameters
(*argsAggValue, default:()) - Values to count. Can include Distinct wrapper for distinct count.
Returns
Aggregate- AnAggregaterepresenting the computation of the count. ReturnsInteger.
Examples
Count all employees:
select(aggregates.count(Employee))Count employees per department:
select(Department, aggregates.count(Employee).per(Department))