ziorrinfotech
asked on
How to get child's child record through query
Hi
I have a table with 3 fields say ItemID, ParentID and ItemName
It has parent child relationship. So for some Items a different ItemID will be in ParentID.
and there is no limit to how long a parent child chain can go...i mean a item can have a child which had another child and that has another child like that....
What i need to find out through query is...if i pass a parentID i need to get all the child and their child and their child ITEMIDs...
How can we do it through query....
thanks
Mahesh
I have a table with 3 fields say ItemID, ParentID and ItemName
It has parent child relationship. So for some Items a different ItemID will be in ParentID.
and there is no limit to how long a parent child chain can go...i mean a item can have a child which had another child and that has another child like that....
What i need to find out through query is...if i pass a parentID i need to get all the child and their child and their child ITEMIDs...
How can we do it through query....
thanks
Mahesh
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.