$query->aggregate()
Builds an aggregation query. This is used by all the aggregation methods above
$query->aggregate(string $method, string $column = '*', int $default = 0)
Parameters
Name | Type | Default | Description |
---|---|---|---|
$methodrequired | string |
no default value | |
$column | string |
'*'
|
|
$default | int |
0
|
An optional default value, which should be returned if the query fails |