Thanks for the reply.
Yes, I'm talking about a recursive relationship. The relationships won't change (meaning, once a record is deemed to be the parent of another record, that will never change).
If it's not asking too much, could you show me an example of a query to retreive data recursively.
For example:
Code:
INSERT INTO EMPLOYEE VALUES (1, 'SOME_MANAGER', NULL);
INSERT INTO EMPLOYEE VALUES (2, 'EMP_A', 1);
INSERT INTO EMPLOYEE VALUES (3, 'EMP_B', 1);
INSERT INTO EMPLOYEE VALUES (4, 'EMP_C', 3);
'SOME_MANAGER' (EMP_ID 1) is the direct manager of 'EMP_A' and 'EMP_B'. 'EMP_B' is the manager of 'EMP_C'.
How would I query to see EMP_C's boss, and his/her boss, and his/her boss, etc?
Thanks for you help!