I have a table which contains info about account members. But the db hierarchy is that this table has an id-key field for individual identification, it also has another id field that identifies the "parent" object, which is also stored using the same table. So to find the number of end children a parent has, I need to make an alias to compare the parent's own id-key field and the childs's parent object id field. However, some childdren object has its own children as well.
How can I get the total number of end children each parent has regardless of the number of "child" level exists between the end children and the "parent"? [sig][/sig]
How can I get the total number of end children each parent has regardless of the number of "child" level exists between the end children and the "parent"? [sig][/sig]