0

2列のgraph_tableというテーブルがあります

node_id INT  
neighbour_id INT

次の選択クエリを実行する必要があります

SELECT node_id, aggregater_func( neighbour_id ) as neighbourhood  FROM graph_table GROUP BY node_id

aggregater_func は、ネイバーをMAP <INT(neighbour_id), INT(frequency)>

この aggregater_func は何ですか?

4

2 に答える 2

-1

次のことを試してください。

select node,SUM(neighbour) 
    from #neighbourhood 
    group by node
于 2012-07-16T07:53:24.893 に答える