I have a table with an ID(autonumber), parent_id, name, etc... fields.
It is a one to many relationship with itself. I.E. each rows parent_id points to the ID of another row. (with one exception, the first records parent_id = -1 to designate the root of the tree).
How can I query down and interact with all children of a single parent. I.E. I have ID = 6. I want to find all rows with parent_id = 6 and all rows beneath them and so on until I run out of rows?
It is a one to many relationship with itself. I.E. each rows parent_id points to the ID of another row. (with one exception, the first records parent_id = -1 to designate the root of the tree).
How can I query down and interact with all children of a single parent. I.E. I have ID = 6. I want to find all rows with parent_id = 6 and all rows beneath them and so on until I run out of rows?