0

询问

START t=node(17) MATCH player-[:PLAYED_WITH_TEAM]->t-[:CONTESTED_IN]->league WITH player.name 作为 playerName,league.startDate 作为 startDate,league.name 作为 LeagueName ORDER BY startDate RETURN playerName,收集(联赛名称);

NeoClipse 错误

在此处输入图像描述

NeoShell 输出

neo4j-sh (0)$ START t=node(17)
> MATCH player-[:PLAYED_WITH_TEAM]->t-[:CONTESTED_IN]->league
> WITH player.name as playerName, league.startDate as startDate, league.name as leagueName
> ORDER BY startDate
> RETURN playerName, collect(leagueName);
+----------------------------------------------------------------------------------------------------------+
| playerName            | collect(leagueName)                                                              |
+----------------------------------------------------------------------------------------------------------+
| "Satish"              | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Aravind Yarram"      | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Vijay Rasale"        | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Abdul Yaser"         | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Selladurai Velusamy" | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Sandeep"             | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
| "Ashish Abraham"      | ["Sri Bala Bharathi 2012 June League","Sri Bala Bharathi 2012 September League"] |
+----------------------------------------------------------------------------------------------------------+
4

0 回答 0