1
0
Fork 0

updated documentation

This commit is contained in:
jsteemann 2018-06-26 23:03:26 +02:00
parent c755c7927b
commit 81af9a05ba
3 changed files with 19 additions and 2 deletions

View File

@ -195,8 +195,9 @@ FOR u IN users
We have used the aggregate functions *LENGTH* here (it returns the length of an array).
This is the equivalent to SQL's `SELECT g, COUNT(*) FROM ... GROUP BY g`. In addition to
*LENGTH* AQL also provides *MAX*, *MIN*, *SUM* and *AVERAGE*, *VARIANCE_POPULATION*,
*VARIANCE_SAMPLE*, *STDDEV_POPULATION* and *STDDEV_SAMPLE* as basic aggregation functions.
*LENGTH*, AQL also provides *MAX*, *MIN*, *SUM* and *AVERAGE*, *VARIANCE_POPULATION*,
*VARIANCE_SAMPLE*, *STDDEV_POPULATION*, *STDDEV_SAMPLE*, *UNIQUE*, *SORTED_UNIQUE* and
*COUNT_UNIQUE* as basic aggregation functions.
In AQL all aggregation functions can be run on arrays only. If an aggregation function
is run on anything that is not an array, a warning will be produced and the result will

View File

@ -72,6 +72,10 @@ RETURN COUNT_DISTINCT([ "yes", "no", "yes", "sauron", "no", "yes" ])
@END_EXAMPLE_AQL
@endDocuBlock aqlArrayCountDistinct_2
## COUNT_UNIQUE()
This is an alias for [COUNT_DISTINCT()](#countdistinct).
## FIRST()
`FIRST(anyArray) → firstElement`

View File

@ -103,6 +103,10 @@ AVERAGE( [ -3, -5, 2 ] ) // -2
AVERAGE( [ 999, 80, 4, 4, 4, 3, 3, 3 ] ) // 137.5
```
## AVG()
This is an alias for [AVERAGE()](#average).
CEIL()
------
@ -542,6 +546,10 @@ Return the sample standard deviation of the values in *array*.
STDDEV_SAMPLE( [ 1, 3, 6, 5, 2 ] ) // 2.0736441353327724
```
## STDDEV()
This is an alias for [STDDEV_POPULATION()](#stddevpopulation).
SUM()
-----
@ -606,3 +614,7 @@ Return the sample variance of the values in *array*.
```js
VARIANCE_SAMPLE( [ 1, 3, 6, 5, 2 ] ) // 4.300000000000001
```
## VARIANCE()
This is an alias for [VARIANCE_POPULATION()](#variancepopulation).