📅  最后修改于: 2020-11-25 01:54:42             🧑  作者: Mango
就像我们在SQL中使用的一样,Neo4j CQL中使用了一些聚合函数。这些函数在RETURN子句中使用。它类似于SQL中的GROUP BY子句。
聚集函数与MATCH命令中的RETURN子句一起使用,以在一组节点上工作并返回一些聚集值。
Neo4j中的聚合函数列表如下:
Index | Function | Description |
---|---|---|
1. | COUNT() | COUNT() function is used to fetch the number of rows returned by MATCH command. |
2. | MAX() | MAX() function is used to fetch the maximum value from a set of rows returned by MATCH command. |
3. | MIN() | MIN() function is used to fetch the minimum value from a set of rows returned by MATCH command. |
4. | SUM() | SUM() function is used to fetch the summation value of all rows returned by MATCH command. |
5. | AVG() | AVG() function is used to fetch the average value of all rows returned by MATCH command. |