Closed joefagan closed 2 years ago
I can't understand what you want...
I want to know whether the two match queries return the same count?
You need to understand distinct first. DISTINCT is eliminate all the duplicate records and fetching only unique records. Therefore, the results of the two queries may be different depending on the existence of duplicate data.
-- CREATE the graph
match p = (:begin) - [*.. ] - (:"end") return count (p);
count 16926 (1 row)match p = (:begin) - [*.. ] - (:"end") return count (distinct p);
count 7092 (1 row)Should these match queries return the same count?