variance_samp
relationalai.semantics.std.aggregates
variance_samp(*args: AggValue) -> AggregateCompute the sample variance of values.
Parameters
(*argsAggValue, default:()) - Values to compute sample variance over. Can include Distinct wrapper for distinct aggregation.
Returns
Aggregate- AnAggregaterepresenting the computation of the sample variance. Always returnsFloat.
Examples
Compute sample variance of salaries:
select(aggregates.variance_samp(Employee.salary))Compute sample variance of salaries per department:
select(Department, aggregates.variance_samp(Employee.salary).per(Department))