2016-07-18 9 views
0

Ich brauche eine Aggregation auf eine Aggregation in Cypher auf Neo4j;Cypher-Gruppe nach Unterabfrage-Syntax

match (
    match (w:words) 
    return distinct k.word as word, count(w) as count, count(distinct w.id) as id 
) as a 
return distinct id, count(word), sum(count); 

Ist das möglich, schlägt Google nicht vor?

Antwort

0

Probieren Sie etwas wie dies mit with:

match (w:words) 
with distinct w.word as word, count(w) as count, count(distinct w.id) as id 
return distinct id, count(word), sum(count); 
Verwandte Themen