Adding Values
This video was recorded using an earlier version of the sandbox (Neo4j 4.x). You are using a Neo4j 5.x sandbox for this course. The last code example has changed to add a WITH clause for sum().
iFull definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. sum() returns the sum of all values retrieved during iFull definition for aggregation (opens in a new tab)Grouping rows and computing a value over each group. In Cypher the grouping keys are whatever expressions in the same clause are not aggregated..
The values must be numeric types or durations.
If the numeric values are a combination of integers and floats, the result returned is a float.
Join GraphAcademy to keep learning
Create your account to unlock 80+ hours of hands-on Neo4j courses, track your progress, and earn a certificate when you complete the course.
Sign in or register