Table of Contents

Class TGroupBy

Namespace
gudusoft.gsqlparser.nodes
Assembly
gudusoft.gsqlparser.dll

This class represents group by clause and having clause.

Specify the GROUP BY clause if you want the database to group the selected rows based on the value of expr(s) for each row and return a single row of summary information for each group.

If this clause contains CUBE or ROLLUP extensions, then the database produces superaggregate groupings in addition to the regular groupings.

Use the HAVING clause to restrict the groups of returned rows to those groups for which the specified condition is TRUE. If you omit this clause, then the database returns summary rows for all groups.

public class TGroupBy : TParseTreeNode, Visitable
Inheritance
TGroupBy
Implements
Inherited Members

Properties

BY

public virtual TSourceToken BY { get; set; }

Property Value

TSourceToken

GROUP

public virtual TSourceToken GROUP { get; set; }

Property Value

TSourceToken

HAVING

public virtual TSourceToken HAVING { get; set; }

Property Value

TSourceToken

HavingClause

Restrict the groups of returned rows to those groups for which the specified condition is TRUE.

If you omit this clause, then the database returns summary rows for all groups. @return

public virtual TExpression HavingClause { get; set; }

Property Value

TExpression

Items

Items in group by clause, can be expr, rollup_cube_clause and grouping_sets_clause.

public virtual TGroupByItemList Items { get; set; }

Property Value

TGroupByItemList
See Also

RollupModifier

public virtual bool RollupModifier { get; set; }

Property Value

bool

Methods

accept(TParseTreeVisitor)

public override void accept(TParseTreeVisitor v)

Parameters

v TParseTreeVisitor

acceptChildren(TParseTreeVisitor)

public override void acceptChildren(TParseTreeVisitor v)

Parameters

v TParseTreeVisitor

doParse(TCustomSqlStatement, ESqlClause)

analyze this node

public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)

Parameters

psql TCustomSqlStatement
plocation ESqlClause

init(object, object)

public override void init(object arg1, object arg2)

Parameters

arg1 object
arg2 object

setBY(TSourceToken)

public void setBY(TSourceToken st)

Parameters

st TSourceToken

setGROUP(TSourceToken)

public void setGROUP(TSourceToken st)

Parameters

st TSourceToken

setHAVING(TSourceToken)

public void setHAVING(TSourceToken st)

Parameters

st TSourceToken