More efficient method for grabbing all child units

Posted by Hazior on Stack Overflow See other posts from Stack Overflow or by Hazior
Published on 2010-04-06T20:16:18Z Indexed on 2010/04/06 20:23 UTC
Read the original article Hit count: 297

Filed under:
|
|

I have a table in SQL that links to itself through parentID. I want to find the children and their children and so forth until I find all the child objects. I have a recursive function that does this but it seems very ineffective.

Is there a way to get sql to find all child objects? If so how?

© Stack Overflow or respective owner

Related posts about sql

Related posts about c#