How to group/List all nodes of a undirected graph using teradata sql
问题 I have data for many diff. set of undirected graphs in a table (like adjacent list relationship, one node is connected which all node) and I need to group all individual undirected graphs. Eg: all nodes of the particular undirected graphs will be in a group & group name will be the min. of the node. sel d.adj_node, min(d.adj_node) Over (Partition By a.node) as grp table a left join table b on a.adj_node=b.node left join table c on b.adj_node=c.node left join table d on c.adj_node=d.node;