My table is (id, name, parent_id) where parent_id is another row.
I need a "family" query that will list all records that are either siblings or a parent or children of an id
For example, table:
1, Bill, <null>
2, Bob, 1
3, Ben, <null>
So the view family_of_Bill would list Bill and Bob
The view family_of_Ben would just list Ben
The view family_of_Bob would list Bill and Bob
I need a "family" query that will list all records that are either siblings or a parent or children of an id
For example, table:
1, Bill, <null>
2, Bob, 1
3, Ben, <null>
So the view family_of_Bill would list Bill and Bob
The view family_of_Ben would just list Ben
The view family_of_Bob would list Bill and Bob