Re: SQL -- SELECT Recursive
Posted by: Peter Brawley
Date: August 19, 2020 10:18AM

> The "intra-table recursive" table manages
> and describes the relation ship via data.

Graphs, yes.

> Is I read it, CTE works for a table that contain
> the tree pointer. That's not the case I presented

Your ...

tblStructure
parent_id (tblOrganization.id)
child_id (tblOrganization.id
relationship

... defines an edge table. How do you think such a graph being cyclic or a network or a parts explosion prevent CTE use? A few examples ...

https://stackoverflow.com/questions/23633138/cte-for-parent-child-relation-with-multiple-parent

https://stackoverflow.com/questions/30233716/sql-recursive-cte-where-used-bom-explosion

https://stackoverflow.com/questions/56849394/sql-detect-cycle-in-directed-graph

https://www.k2.com/blog/efficient-directed-cyclic-graph-traversal-in-sql

https://stackoverflow.com/questions/62785161/use-cte-instead-of-table-variable-for-recursive-function

Options: ReplyQuote


Subject
Written By
Posted
August 18, 2020 02:31AM
August 18, 2020 10:47AM
Re: SQL -- SELECT Recursive
August 19, 2020 10:18AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.