AggregateTrait
+ Inheritance diagram for AggregateTrait:

Description

Aggregation functions.

Public Methods

Num avg ()
 AVG($this) More...
 
Num avgDistinct ()
 AVG(DISTINCT $this) More...
 
Num count ()
 COUNT($this) More...
 
Num countDistinct ()
 COUNT(DISTINCT $this) More...
 
Str groupConcat (string $delimiter=',')
 GROUP_CONCAT($this) using a delimiter. More...
 
Num max ()
 MAX($this) More...
 
Num min ()
 MIN($this) More...
 
Num sum ()
 SUM($this) More...
 
Num sumDistinct ()
 SUM(DISTINCT $this) More...
 

Methods

◆ avg()

Num avg ( )

AVG($this)

Returns
Num

◆ avgDistinct()

Num avgDistinct ( )

AVG(DISTINCT $this)

Returns
Num

◆ count()

Num count ( )

COUNT($this)

Returns
Num

◆ countDistinct()

Num countDistinct ( )

COUNT(DISTINCT $this)

Returns
Num

◆ groupConcat()

Str groupConcat ( string  $delimiter = ',')

GROUP_CONCAT($this) using a delimiter.

Parameters
string$delimiter
Returns
Str

◆ max()

Num max ( )

MAX($this)

Returns
Num

◆ min()

Num min ( )

MIN($this)

Returns
Num

◆ sum()

Num sum ( )

SUM($this)

Returns
Num

◆ sumDistinct()

Num sumDistinct ( )

SUM(DISTINCT $this)

Returns
Num