Class Avg

  • All Implemented Interfaces:
    Column, SQLFunction

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

      • Avg

        public Avg​(Column column)
        Construct an AVG function class with the column to average over.
        Parameters:
        column - the Column to average over.
      • Avg

        public Avg​(String sqlExpression)
        Construct an AVG function class with an SQL expression to average over.
        Parameters:
        sqlExpression - the SQL expression to average over.
      • Avg

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