Hello,
I have this query:
MATCH(g:Geocache)-[l:LOG]->(:Log) WHERE g.referenceCode = 'GC728BR' AND l.typeId = 2 RETURN date(l.loggedDate) AS date, l.favoritePoint AS fp ORDER BY l.loggedDate
and the result is like this:
ββββββββββββββ€ββββββ
β"date" β"fp" β
ββββββββββββββͺββββββ‘
β"2018-02-09"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-09"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-09"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-11"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-11"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-11"βfalseβ
ββββββββββββββΌββββββ€
β"2018-02-11"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-11"βfalseβ
ββββββββββββββΌββββββ€
β"2018-02-12"βtrue β
ββββββββββββββΌββββββ€
β"2018-02-12"βtrue β
ββββββββββββββΌββββββ€
I'd like to aggregate the result by date, the count of the same date, and the count of "FP" at the value true.
Example:
ββββββββββββββ€ββββββββ€ββββββ
β"date" β"found"β"fp" β
ββββββββββββββͺββββββββͺββββββ‘
β"2018-02-09"β3 β3 β
ββββββββββββββΌββββββββΌββββββ€
β"2018-02-11"β5 β3 β
ββββββββββββββΌββββββββΌββββββ€
β"2018-02-12"β2 β2 β
ββββββββββββββΌββββββββΌββββββ€
I have tried several solutions, but I can't get the right result...
Can you help me please?
Thank you!