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
GROUP
public virtual TSourceToken GROUP { get; set; }
Property Value
HAVING
public virtual TSourceToken HAVING { get; set; }
Property Value
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
Items
Items in group by clause, can be expr, rollup_cube_clause and grouping_sets_clause.
public virtual TGroupByItemList Items { get; set; }
Property Value
- See Also
RollupModifier
public virtual bool RollupModifier { get; set; }
Property Value
Methods
accept(TParseTreeVisitor)
public override void accept(TParseTreeVisitor v)
Parameters
acceptChildren(TParseTreeVisitor)
public override void acceptChildren(TParseTreeVisitor v)
Parameters
doParse(TCustomSqlStatement, ESqlClause)
analyze this node
public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
Parameters
psqlTCustomSqlStatementplocationESqlClause
init(object, object)
public override void init(object arg1, object arg2)
Parameters
setBY(TSourceToken)
public void setBY(TSourceToken st)
Parameters
stTSourceToken
setGROUP(TSourceToken)
public void setGROUP(TSourceToken st)
Parameters
stTSourceToken
setHAVING(TSourceToken)
public void setHAVING(TSourceToken st)
Parameters
stTSourceToken