Class Sum

  • All Implemented Interfaces:
    Column, SQLFunction

    public class Sum
    extends AggregateFunction
    SQL99 Standard sum function.
    Version:
    $Id: Sum.java 1848281 2018-12-06 10:48:36Z tv $
    • Constructor Detail

      • Sum

        public Sum​(Column column)
        Construct an SUM function class with the column to sum over.
        Parameters:
        column - the Column to sum over.
      • Sum

        public Sum​(String sqlExpression)
        Construct an SUM function class with an SQL expression to sum over.
        Parameters:
        sqlExpression - the SQL expression to sum over.
      • Sum

        public Sum​(Column column,
                   boolean distinct)
        Construct an SUM function class with the column to sum over and possibly a distinct modifier.
        Parameters:
        column - the Column to sum over.
        distinct - whether to count only over distinct values.