I have a table with a feature_id column, and a parent_id column. This represents a tree structure (a parent_id is the feature_id of the parent node in the tree).
If you know then end node in the tree (the lowest item) - is there a way in one query to return that and everything above it right up to the root? (Obviously without using a cursor)?
Thanks!
Start Free Trial