Building Blocks

Basic Queries

Nested Structures

Advanced EdgeQL

EdgeQL Tutorial

Subtopics

EdgeQL Tutorial

Aggregates

In the `math`

built-in module there are a few aggregate
functions useful for calculating statistics. There is `mean`

for calculating the arithmetic mean of a set.
Since this function belongs to the `math`

module, the
module name needs to be specified when calling it:

Input

Run

Output Objects

Press the 'Run' button to evaluate the input

There are `stddev`

and `stddev_pop`

for calculating the
sample and population standard deviation, respectively.
Similarly, there are `var`

and `var_pop`

for calculating
sample and population variance. Try them out:

Input

Run

Output Objects

Press the 'Run' button to evaluate the input

Input

Run

Output Objects

Press the 'Run' button to evaluate the input