Group By and Having
groupBy
Name | Type | Required | Default | Description |
groups | string | array |
| A single column name, a list of column names, or an array of column names to group by. An |
Passing a single string will group by that one column.
You can also pass a list of column names. A single comma (","
) will be used as the delimiter.
An array of column names can be provided.
Calling groupBy
multiple times will to the current groups.
An Expression
can be passed in place of a column.
having
Name | Type | Required | Default | Description |
column | string | Expression |
| The name of the column or | |
operator | any |
| The operator to use for the constraint (i.e. "=", "<", ">=", etc.). A value can be passed as the | |
value | any |
| The value with which to constrain the column. An | |
combinator | string |
|
| The boolean combinator for the clause. Valid options are |
Adds a having clause to a query.
Expressions
can be used in place of the column or the value.
Last updated