mirror of https://gitee.com/bigwinds/arangodb
updated documentation
This commit is contained in:
parent
c755c7927b
commit
81af9a05ba
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue