2016-07-18 16 views
0

Neo4jのCypherで集約を行う必要があります。サブクエリ構文によるCypherグループ

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); 

これは可能ですか、Googleは示唆していますか?

答えて

0

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); 
関連する問題