MssqlAggregate.sum constructor

MssqlAggregate.sum(
  1. MssqlExpression operand, {
  2. bool distinct = false,
})

SUM(x).

The result follows the operand type and does not widen automatically.

Implementation

factory MssqlAggregate.sum(
  MssqlExpression operand, {
  bool distinct = false,
}) => MssqlAggregate._(
  function: MssqlAggregateFunction.sum,
  operand: operand,
  resultType: _numericResult(operand, 'sum()'),
  distinct: distinct,
  window: null,
);