Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-07-2021 10:50 PM
n
).name
AS (n.name)
, type
((r
)) AS type(r)
, distinct
(((m
).name
)) AS distinct(m.name)
, round
((rand
()), (10)) AS score
I also tried collect(distinct(m.name)) and it is not random.
I wish some of you can lend some help.
by the way when I say non-random results I mean something like this
A-->j
J-->j
q-->j
x-->j
k-->j
I am looking from something like this where both the starting nodes and the target nodes are completely random.
J-->c
q-->u
x-->t
k-->a
your help is greatly appreciated.
11-08-2021 03:07 AM
Hello
Can you please apply Distinct keyword in match rather than in return statement.
Thanking you
Yours faithfully
G Sudhir Sameer
11-08-2021 03:42 AM
thank you very much, it seems to be working.
peace!
All the sessions of the conference are now available online