Skip to content
Advertisement

Tag: recursive-query

Recursive Subquerying with sorting

I looked at Tim Hall’s excellent article here, that allows you to work with self-referenced entities and show hierarchical data (starting with top level nodes and joining back recursively), using CTE like syntax in Oracle. So I have code that looks like this: For the the anchor rows (the top level hierarchy J1 entries in my SQL, with NULL parents),

Advertisement