1
我有一個小問題,找出如何返回一個具有多個去除關係的節點。Neo4j - 只返回一個有多重關係的節點
所以我想只顯示節點,即使它有多個關係;這是我的查詢:
MATCH total=(n:Employee)-[r:WorkedOn]->(p:Project)
RETURN toFloat(p.total_efficiency)/toFloat(count(p)) as score , n.first_name as name, n.last_name as surname, r.role as role, n.start_date_of_work as startDate, n.experience as experience,
n.email as email, n.age as age, collect(p.name) as projects ORDER BY score DESC LIMIT {l}
但這返回一個像這樣的表:
如何解決雙「傑瑞凡Melckebeke的記錄?我只想要一個。
我也可以提前取出「角色」屬性,但我需要的項目對象無論如何計算得分...
感謝, 傑瑞範Melckebeke