Has anyone tried writing a query which can determine the parent child relationship of records in a table??? This can be done in Oracle using the START WITH, CONNECT BY Clause. I dont how the same can be achieved on any other database, say DB2. I'm thinking of using some kind of Correlated query for this, but haven't been able to figure it out completely. Can anyone help???